Skip to content

Commit

Permalink
Merge pull request #233 from ForgeRock/SDKS-2746-SafariViewController…
Browse files Browse the repository at this point in the history
…_reader_fix

SafariviewController reader fix
  • Loading branch information
spetrov authored Oct 3, 2023
2 parents 956fe92 + 9bae9d2 commit 7cf3bd3
Showing 1 changed file with 1 addition and 9 deletions.
10 changes: 1 addition & 9 deletions FRAuth/FRAuth/User/Browser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -325,16 +325,8 @@ import SafariServices
func loginWithSFViewController(url: URL, completion: @escaping UserCallback) -> Bool {

var viewController: SFSafariViewController?
if #available(iOS 11.0, *) {
let config = SFSafariViewController.Configuration()
config.entersReaderIfAvailable = true
viewController = SFSafariViewController(url: url, configuration: config)
viewController = SFSafariViewController(url: url, configuration: SFSafariViewController.Configuration())
viewController?.delegate = self
}
else {
viewController = SFSafariViewController(url: url)
viewController?.delegate = self
}
self.currentSession = viewController
if let currentViewController = self.presentingViewController, let sfVC = viewController {
currentViewController.present(sfVC, animated: true)
Expand Down

0 comments on commit 7cf3bd3

Please sign in to comment.