KSSafariActivity 0.1.6

KSSafariActivity 0.1.6

Maintained by kohei1218.



  • By
  • kohei1218

KSSafariActivity

CI Status Version License Platform

Existing ActivityViewController does not have Activity to open Safari. With KSsafariActivity you can introduce it with just a single line without any concern for developers.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Requirements

  • Swift 3.0 or later
  • iOS 8.0 or later

Usage

// Create a KSSafariActivity with title and url
let ksSafariActivity = KSSafariActivity(title: "open safari", url: URL(string: "https://yourUrl"))

// Passing to applicationActivities just transitions as usual
let activityViewController = UIActivityViewController(activityItems: [""], applicationActivities: [ksSafariActivity])
present(activity, animated: true, completion: nil)

Installation

KSSafariActivity is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'KSSafariActivity'

Author

kohei1218, [email protected]

License

KSSafariActivity is available under the MIT license. See the LICENSE file for more info.