Skip to content

Add WebBrowser component wrapping SFSafariViewController and CustomTabsIntent#20

Merged
marcprux merged 4 commits intomainfrom
web-browser
Mar 17, 2026
Merged

Add WebBrowser component wrapping SFSafariViewController and CustomTabsIntent#20
marcprux merged 4 commits intomainfrom
web-browser

Conversation

@marcprux
Copy link
Member

@marcprux marcprux commented Mar 17, 2026

Adds an embedded WebBrowser view (previously added in skiptools/skip-web#39 and subsequently removed in skiptools/skip-web#42).

On iOS it uses a SFSafariViewController and on Android it uses androidx.browser.customtabs.CustomTabsIntent.

It can be used like:

import SwiftUI
import SkipKit

struct MyView: View {
    @State var showPage = false

    var body: some View {
        Button("Open Documentation") {
            showPage = true
        }
        .openWebBrowser(
            isPresented: $showPage,
            url: "https://skip.dev/docs",
            mode: .embeddedBrowser(params: nil)
        )
    }
}

@cla-bot cla-bot bot added the cla-signed label Mar 17, 2026
@marcprux marcprux merged commit 582e1d4 into main Mar 17, 2026
1 check passed
@marcprux marcprux deleted the web-browser branch March 17, 2026 22:33
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant