How to fix navigation bar?
Closed this issue · 1 comments
rlam3 commented
I'm trying to use SafariServices with Static but whenever I try to navigate to a safariviewcontroller, the safari navigation is also present. What is the recommended way to fix this issue?
func configureDataSource() -> Void {
dataSource.sections = [
Section(header: "",
rows: [
Row(
text:NSLocalizedString("Privacy Policy", comment:"GeneralUserSettingTVC"),
selection:{
let _url = Config.sharedInstance.privacyURL()
let vc = SFSafariViewController(url: _url)
vc.hidesBottomBarWhenPushed = true
self.show(vc, sender: self)
},accessory:.disclosureIndicator),
Row(
text:NSLocalizedString("Terms and Condition", comment:"GeneralUserSettingTVC"),
selection:{
let _url = Config.sharedInstance.tosURL()
let vc = SFSafariViewController(url: _url)
vc.hidesBottomBarWhenPushed = true
self.show(vc, sender: self)
},accessory:.disclosureIndicator),
]
)
]
dataSource.tableView = tableView
}
eliperkins commented
This is not an issue with this library, but rather with calling show(_:)
with a SFSafariViewController
. Prefer using present(_:)
instead.