Thanks to visit codestin.com
Credit goes to github.com

Skip to content

mchoo7/TUSafariActivity

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

77 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

TUSafariActivity

TUSafariActivity is a UIActivity subclass that provides an "Open In Safari" action to a UIActivityViewController.

Installation

TUSafariActivity is available through Swift Package Manager. To install it, simply add the following line to your Package.swift:

dependencies: [.package(url: "https://github.com/fel1x-developer/TUSafariActivity.git", from: "1.0.0")]

Usage

let url = URL(string: "http://google.com")!
let activity = TUSafariActivity()
let activityViewController = UIActivityViewController(activityItems: [url], applicationActivities: [activity])

And set CFBundleAllowMixedLocalizations to YES in Info.plist.

Note that you can include the activity in any UIActivityViewController and it will only be shown to the user if there is a URL in the activity items.

About

A UIActivity subclass that opens URLs in Safari

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • Swift 100.0%