venmo/Static

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?

screen shot 2017-11-03 at 5 10 42 pm
screen shot 2017-11-03 at 5 10 50 pm

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

    }

This is not an issue with this library, but rather with calling show(_:) with a SFSafariViewController. Prefer using present(_:) instead.