Using SFSafariViewController to open URL inside app without transitioning to Safari or using WebView

No comments on Using SFSafariViewController to open URL inside app without transitioning to Safari or using WebView

Written by

in

RxSwift/RxCocoa example:

import SafariServices

learnMoreButton.rx.tap
    .subscribe(onNext: {
        guard let url = URL(string: "https://google.com") else { return }
        let svc = SFSafariViewController(url: url)
        self.present(svc, animated: true, completion: nil)
    })
    .disposed(by: disposeBag)

Comments

Leave a Reply

Your email address will not be published. Required fields are marked *