---
title: WebKit for SwiftUI
framework: WebKit
role: collectionGroup
role_heading: API Collection
path: webkit/webkit-for-swiftui
---

# WebKit for SwiftUI

Integrate web content into your SwiftUI apps with new standard views you connect to webpages.

## Overview

Overview Present web content in your SwiftUI app with WebKit for SwiftUI. Use WebKit features to observe content and customize the web browsing and display experience. Create a WebView with a URL to display your web content. Apply view modifiers for various customizations, like displaying a find navigator, customizing scrolling behavior, configuring gesture behavior, and more. Connect WebView to a WebPage to interact with and react to changes in web content, such as observing navigation progress and calling JavaScript. You can use WebPage by itself when you don’t need to display the content directly. note: For more information about using WebKit in your app using SwiftUI, see Meet WebKit for SwiftUI from WWDC25.

## Topics

### Essentials

- [Building a cross-platform web browser](webkit/building-a-cross-platform-web-browser.md)
- [WebView](webkit/webview-swift.struct.md)
- [WebPage](webkit/webpage.md)

### Managing navigation between webpages

- [WebPage.NavigationDeciding](webkit/webpage/navigationdeciding.md)
- [WebPage.NavigationAction](webkit/webpage/navigationaction.md)
- [WebPage.NavigationResponse](webkit/webpage/navigationresponse.md)
- [WebPage.NavigationPreferences](webkit/webpage/navigationpreferences.md)
- [WebPage.FrameInfo](webkit/webpage/frameinfo.md)
- [WebPage.NavigationPreferences.ContentMode](webkit/webpage/navigationpreferences/contentmode.md)
- [WebPage.NavigationPreferences.UpgradeToHTTPSPolicy](webkit/webpage/navigationpreferences/upgradetohttpspolicy.md)
- [WebPage.NavigationPreferences.SecurityRestrictionMode](webkit/webpage/navigationpreferences/securityrestrictionmode-swift.enum.md)
- [WebPage.FormInfo](webkit/webpage/forminfo.md)

### Observing navigation between webpages

- [WebPage.BackForwardList](webkit/webpage/backforwardlist-swift.struct.md)
- [WebPage.NavigationEvent](webkit/webpage/navigationevent.md)
- [WebPage.BackForwardList.Item](webkit/webpage/backforwardlist-swift.struct/item.md)
- [WebPage.BackForwardList.Item.ID](webkit/webpage/backforwardlist-swift.struct/item/id-swift.struct.md)

### Configuring a WebPage

- [WebPage.Configuration](webkit/webpage/configuration.md)
- [WebPage.DeviceSensorAuthorization](webkit/webpage/devicesensorauthorization.md)
- [URLScheme](webkit/urlscheme.md)
- [URLSchemeHandler](webkit/urlschemehandler.md)
- [URLSchemeTaskResult](webkit/urlschemetaskresult.md)
- [WebPage.Configuration.MediaPlaybackBehavior](webkit/webpage/configuration/mediaplaybackbehavior-swift.enum.md)
- [WebPage.DeviceSensorAuthorization.Permission](webkit/webpage/devicesensorauthorization/permission.md)

### Immersive environments

- [WebPage.ImmersiveEnvironment](webkit/webpage/immersiveenvironment.md)
- [WebViewImmersiveEnvironmentView](webkit/webviewimmersiveenvironmentview.md)
- [allowsImmersiveEnvironments](webkit/webpage/configuration/allowsimmersiveenvironments.md)

## See Also

### WebKit APIs

- [WebKit for AppKit and UIKit](webkit/webkit-for-appkit-and-uikit.md)
