firebase / FirebaseUI-iOS

iOS UI bindings for Firebase.
Apache License 2.0
1.51k stars 475 forks source link

Privacy Policy and TOS not appearing in custom FUIAuthPickerViewController (SwiftUI) #892

Open jtressle opened 4 years ago

jtressle commented 4 years ago

I'm trying to the FirebaseUI view controller in SwiftUI, but have an issue displaying the privacy policies or TOS.

Basically, I'm following the implementation described in issue 811: https://github.com/firebase/FirebaseUI-iOS/issues/811

In my UIViewControllerRepresentable, I've the following lines:

    func authPickerViewController(forAuthUI authUI: FUIAuth) -> FUIAuthPickerViewController
    {
        return AuthPickerViewController(nibName: "AuthPickerViewController", bundle: Bundle.main, authUI: authUI)
    }

My custom AuthPickerViewController is simply a FUIAuthPickerViewController subclass with a different background color. Omitting the above lines shows the privacy policy and TOS, while implementing the above lines hides the privacy policy.

What is the correct way of implementing FirebaseUI in SwiftUI?

Thanks in advance,

pedrovelmo commented 4 years ago

@jtressle having a similar issue following the implementation in #811. It seems the delegate methods on the Coordinator are not called? Any chance you found a workaround this?

Thanks!

MonfretAugustin commented 1 year ago

@pedrovelmo I'm having the same issue. Did you found a workaround on this ? Thanks !