LoginSignup
0
0

More than 3 years have passed since last update.

SFSafariViewControllerをmodalで出す

Posted at

いつからかSFSafariViewControllerは
present(safafiVC, animated: true)
としてもpush遷移の挙動をするようになりました。

modalで表示させたい時は

modal.swift
let safariVC = SFSafariViewController(url: targetURL)
safariVC.modalPresentationStyle = .overFullScreen
present(safariVC, animated: true)

とすればモーダル表示になってくれます。

そうなった経緯とか探れたら良い記事になりそうですが、とりあえず方法だけ。

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0