Search code examples
iosswiftsfsafariviewcontrollerappauth

Customise SafariViewController with APPAUTH swift


I am learning ios development with swift and i am implementing Authentication using the appauth pod. My question would be : Is it possible to customise the safariviewcontroller used to login? Are there some samples with swift?

Thanks


Solution

  • SFSafariViewController is not customisable as Apple states -

    If your app lets users view websites from anywhere on the Internet, use the SFSafariViewController class. If your app customizes, interacts with, or controls the display of web content, use the WKWebView class.

    Source - https://developer.apple.com/documentation/safariservices/sfsafariviewcontroller

    You may also try ASWebAuthenticationSession or SFAuthenticationSession.