BetterSafariView

A better way to present a SFSafariViewController or start a ASWebAuthenticationSession in SwiftUI.

MIT License

Stars
577

Bot releases are hidden (Show)

BetterSafariView - Latest Release

Published by stleamist 12 months ago

Fixed

  • Fixed an issue where the SafariViewPresenter fails to find a view controller to presented from (#41 & #46). Thanks, @Tunous and @SongJiyeon!
BetterSafariView -

Published by stleamist almost 2 years ago

Fixed

  • Fixed an issue where the WebAuthenticationPresenter fails to find its presentation anchor (#22). Thanks, @kevvdevv, @exentrich, and @ldstreet!
BetterSafariView -

Published by stleamist about 3 years ago

Changed

  • SafariViewPresenter and WebAuthenticationPresenter now conforms to UIViewRepresentable, instead of UIViewControllerRepresentable.

Fixed

  • Fixed an issue where the SafariView is not presented on the multi-layered modal sheets (#20). Thanks, @twodayslate!
BetterSafariView -

Published by stleamist over 3 years ago

Fixed

  • Fixed an issue where the SafariView is not presented on the modal sheets (#9). Thanks, @boherna!
BetterSafariView -

Published by stleamist over 3 years ago

Added

  • Added WebAuthenticationSession support for macOS and watchOS.
BetterSafariView -

Published by stleamist about 4 years ago

Fixed

  • Fixed an issue where the changes of SafariView and WebAuthenticationSession is not applied after an initialization.
BetterSafariView -

Published by stleamist about 4 years ago

Fixed

  • Fixed an issue where the package could not be compiled on Swift 5.2 or earlier.
BetterSafariView -

Published by stleamist about 4 years ago

Added

  • SafariView now conforms to View protocol, so it can be used even in the .sheet() or the .fullScreenCover() modifiers for the advanced usage.
  • Added accentColor(_:) modifier to SafariView as a convenience method of preferredControlAccentColor(_:).
  • Added a new initializer of WebAuthenticationSession where the onCompletion closure receives a Result instance, which contains either a URL or an Error.

Fixed

  • Fixed typos on the markup.
BetterSafariView -

Published by stleamist about 4 years ago

Changed

  • Coordinators are now in charge of view controller presentations, following the structure of VisualEffects.
BetterSafariView -

Published by stleamist about 4 years ago

Fixed

  • Fixed typos on the markup.
BetterSafariView -

Published by stleamist about 4 years ago

Added

  • You can now authenticate a user through a web authentication session by using WebAuthenticationSession.
  • With the new SafariView representation and its modifiers, configurations and properties on SFSafariViewController also could be used.
  • Using safariView(isPresented:onDismiss:content:) modifier, actions could be performed when the Safari view dismisses.
  • Using safariView(item:onDismiss:content:) modifier, the Safari view could be replaced on the item's identity change.

Changed

  • The package has been renamed to BetterSafariView from FullScreenSafariView.
  • safariView(isPresented:content:) modifier now gets a closure returning a SafariView representation instead of a URL instance.

Fixed

  • Fixed an issue where the dismissed Safari view is presented and dismissed again on iOS 14.
  • Fixed an issue where page loading and parallel push animation are not working when a modifier is attached to the view in a List.
  • Improved stability during the SwiftUI view update process.
BetterSafariView -

Published by stleamist over 4 years ago

  • Initial release