Swiftpack.co - shaokui-gu/GM-Dragable as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by shaokui-gu.
shaokui-gu/GM-Dragable 0.3.2
A DragableView extension for GM
⭐️ 0
🕓 39 weeks ago
iOS
.package(url: "https://github.com/shaokui-gu/GM-Dragable.git", from: "0.3.2")

GM-Dragable

A DragableView extension for GM

Installation

SwiftPackageManager

The preferred way of installing SwiftUIX is via the Swift Package Manager.

Xcode 11 integrates with libSwiftPM to provide support for iOS, watchOS, macOS and tvOS platforms.

  1. In Xcode, open your project and navigate to FileSwift PackagesAdd Package Dependency...
  2. Paste the repository URL (https://github.com/shaokui-gu/GM-Dragable.git) and click Next.
  3. Click Finish.

CocoaPods

pod 'GM+Dragable', :git => "https://github.com/shaokui-gu/GM-Dragable.git", :tag => '0.2.7'

How to use it

  • UIViewController
try? self.showDragableFragment("/main", params: [
            "id": 1
            ...
        ], backgroundColor: .clear, showShadow: true, disableGestureClose: true, height: 320, onDismiss: {
           /// do something on dismiss
           ...
        })
  • GM
  GM.showDragableFragment("/main", params: [
            "id": 1
            ...
        ], backgroundColor: .clear, showShadow: true, disableGestureClose: true, height: 320, onDismiss: {
           /// do something on dismiss
           ...
        })

GitHub

link
Stars: 0
Last commit: 39 weeks ago
Advertisement: IndiePitcher.com - Cold Email Software for Startups

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics