A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI.
MIT License
Bot releases are visible (Hide)
SafariViewPresenter
and WebAuthenticationPresenter
now conforms to UIViewRepresentable
, instead of UIViewControllerRepresentable
.SafariView
is not presented on the multi-layered modal sheets (#20). Thanks, @twodayslate!SafariView
now conforms to View
protocol, so it can be used even in the .sheet()
or the .fullScreenCover()
modifiers for the advanced usage.accentColor(_:)
modifier to SafariView
as a convenience method of preferredControlAccentColor(_:)
.WebAuthenticationSession
where the onCompletion
closure receives a Result
instance, which contains either a URL
or an Error
.WebAuthenticationSession
.SafariView
representation and its modifiers, configurations and properties on SFSafariViewController
also could be used.safariView(isPresented:onDismiss:content:)
modifier, actions could be performed when the Safari view dismisses.safariView(item:onDismiss:content:)
modifier, the Safari view could be replaced on the item
's identity change.safariView(isPresented:content:)
modifier now gets a closure returning a SafariView
representation instead of a URL
instance.List
.