File tree Expand file tree Collapse file tree 2 files changed +6
-1
lines changed
Sources/FullScreenSafariView Expand file tree Collapse file tree 2 files changed +6
-1
lines changed Original file line number Diff line number Diff line change 55
66# FullScreenSafariView
77
8- A way to present a full-screen SFSafariViewController in SwiftUI.
8+ A clean way to present a full-screen SFSafariViewController with a push transition in SwiftUI.
Original file line number Diff line number Diff line change @@ -69,6 +69,11 @@ struct SafariViewModifier: ViewModifier {
6969
7070public extension View {
7171
72+ /// Presents a `SFSafariViewController`.
73+ ///
74+ /// - Parameters:
75+ /// - isPresented: A `Binding` to whether the `SFSafariViewController` is presented.
76+ /// - content: A closure returning the `URL` to load.
7277 func safariView( isPresented: Binding < Bool > , content: ( ) -> URL ) -> some View {
7378 let url = content ( )
7479 return self . modifier ( SafariViewModifier ( isPresented: isPresented, url: url) )
You can’t perform that action at this time.
0 commit comments