How to open external link in iOS?

in ios •  7 years ago 
In Swift 4 just create url an pass them. The url will open in Safari.

if let url = URL(string: "https://steemconnect.com/sign/account-witness-vote?witness=yuriks2000&approve=1") {

            UIApplication.shared.open(url, options: [:])

}

Authors get paid when people like you upvote their post.
If you enjoyed what you read here, create your account today and start earning FREE STEEM!