Skip to content

Commit

Permalink
Updating based on comment
Browse files Browse the repository at this point in the history
  • Loading branch information
george-bafaloukas-forgerock committed Sep 21, 2023
1 parent 1ad50d4 commit 9bae9d2
Showing 1 changed file with 2 additions and 10 deletions.
12 changes: 2 additions & 10 deletions FRAuth/FRAuth/User/Browser.swift
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
// Browser.swift
// FRAuth
//
// Copyright (c) 2020-2021 ForgeRock. All rights reserved.
// Copyright (c) 2020-2023 ForgeRock. All rights reserved.
//
// This software may be modified and distributed under the terms
// of the MIT license. See the LICENSE file for details.
Expand Down Expand Up @@ -314,16 +314,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 = false
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 9bae9d2

Please sign in to comment.