<!-- mobian-agent-page publisher="dailydev" canonical="https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8" -->

---
title: SwiftUI has a native WebView in iOS 26 | daily.dev
description: iOS 26 introduces a native WebView type for SwiftUI, built directly on WebKit, eliminating the need for the UIViewRepresentable wrapper developers have...
canonical: https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8
twitter:card: summary_large_image
twitter:site: @dailydotdev
og:type: website
og:site_name: daily.dev
og:title: SwiftUI has a native WebView in iOS 26 | daily.dev
og:description: iOS 26 introduces a native WebView type for SwiftUI, built directly on WebKit, eliminating the need for the UIViewRepresentable wrapper developers have...
og:url: https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8
og:image: https://api.daily.dev/og/posts/r7vNB7uw8.png
og:image:alt: SwiftUI has a native WebView in iOS 26
og:image:width: 1200
og:image:height: 630
og:locale: en
---

> ## Documentation Index
> Fetch the complete documentation index at: https://daily.dev/llms.txt
> Use this file to discover all available pages before exploring further.

# SwiftUI has a native WebView in iOS 26

**[Sarunw](https://daily.dev/sources/sarunw)** · [@sarunw](https://daily.dev/sarunw) · 5 min read · 1 upvotes · 1 comments

## Summary

iOS 26 introduces a native WebView type for SwiftUI, built directly on WebKit, eliminating the need for the UIViewRepresentable wrapper developers have hand-written for years. WebView(url:) covers simple cases like showing a terms page, while the companion WebPage model (Observable) exposes title, loading progress, back/forward history, and async JavaScript execution. WebView only appears when both SwiftUI and WebKit are imported since it ships via a cross-import overlay. The .webViewContentBackground(.hidden) modifier fixes the old white-flash-on-load issue from WKWebView's opaque background. Apps supporting pre-iOS 26 targets still need to keep the old UIViewRepresentable wrapper alongside the new API.

## Full article

daily.dev links to this article rather than hosting it. Read it at the original source: <https://sarunw.com/posts/swiftui-native-webview>

## Questions this post answers

### How do I show a web page in SwiftUI on iOS 26 without UIViewRepresentable?

iOS 26 adds a native WebView struct to SwiftUI, backed by WebKit, so WebView(url:) alone renders web content and accepts normal SwiftUI modifiers. It replaces the UIViewRepresentable wrapper around WKWebView that developers previously had to write and copy between projects. WebView only becomes visible when a file imports both SwiftUI and WebKit, since it ships as a cross-import overlay module.

_daily.dev surfaces SwiftUI platform changes like this for developers cutting legacy wrapper code._

### How do I track page title and loading progress with SwiftUI's WebView in iOS 26?

Create a WebPage instance, an Observable model that backs the WebView, and pass it to WebView(page) instead of a URL. Reading page.title, page.estimatedProgress, and page.url in the view updates automatically once the page loads, with no coordinator or delegate needed. WebPage also exposes backForwardList for navigation history and an async callJavaScript method.

_developers wiring up richer web views in SwiftUI can track API details like this on daily.dev._

### Do I still need UIViewRepresentable for WebView on iOS versions before iOS 26?

Yes, WebView and WebPage in SwiftUI are only available on iOS 26 and later, so apps supporting older deployment targets must keep the UIViewRepresentable-based WKWebView wrapper and branch at runtime using if #available(iOS 26.0, *) to choose the right implementation.

_teams juggling deployment targets can follow SwiftUI availability changes like this on daily.dev._

## Community discussion

Top comments from developers on daily.dev.

**@mark\_kazakov** · 1 upvotes

> SwiftUI has been around for 7 years now, and still there is no feature parity with UIKit. I hope more is to come...

## Similar posts on daily.dev

- [How native SwiftUI controls look different in iOS 26](https://daily.dev/posts/how-native-swiftui-controls-look-different-in-ios-26-abwxnqlub) · Sarunw · 1 upvotes · 0 comments
- [What is new in SwiftUI after WWDC26](https://daily.dev/posts/what-is-new-in-swiftui-after-wwdc26-km1yihp3o) · Swift with Majid · 0 upvotes · 0 comments
- [Announcing Mastering SwiftUI 7 for iOS 26 and Xcode 26](https://daily.dev/posts/announcing-mastering-swiftui-7-for-ios-26-and-xcode-26-9odaiqafh) · Appcoda · 0 upvotes · 0 comments
- [Xcode 27 drew a white strip over my iPhone app's status bar](https://daily.dev/posts/xcode-27-drew-a-white-strip-over-my-iphone-app-s-status-bar-79ntrcynr) · Mattias Geniar · 0 upvotes · 0 comments

---

Tags: [#ios](https://daily.dev/tags/ios), [#swift](https://daily.dev/tags/swift), [#swiftui](https://daily.dev/tags/swiftui), [#safari](https://daily.dev/tags/safari)

[View this post on daily.dev](https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8)

```json
{"@context":"https://schema.org","@graph":[{"@type":"Organization","@id":"https://daily.dev/#organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180},"sameAs":["https://twitter.com/dailydotdev","https://github.com/dailydotdev","https://www.linkedin.com/company/daily-dev-ltd"]},{"@type":"WebSite","@id":"https://daily.dev/#website","url":"https://daily.dev","name":"daily.dev","publisher":{"@id":"https://daily.dev/#organization"},"potentialAction":{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https://daily.dev/search?q={search_term_string}"},"query-input":"required name=search_term_string"}}]}
{"@context":"https://schema.org","@type":"TechArticle","headline":"SwiftUI has a native WebView in iOS 26","url":"https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8","mainEntityOfPage":{"@type":"WebPage","@id":"https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8"},"datePublished":"2026-09-07T21:12:07.815Z","dateModified":"2026-09-13T22:00:15.287Z","description":"iOS 26 introduces a native WebView type for SwiftUI, built directly on WebKit, eliminating the need for the UIViewRepresentable wrapper developers have...","image":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c51a205b0980b8a7d30052fa0d73d35?_a=AQAEuop","thumbnailUrl":"https://media.daily.dev/image/upload/f_auto,q_auto/v1/posts/6c51a205b0980b8a7d30052fa0d73d35?_a=AQAEuop","isAccessibleForFree":true,"articleSection":"Sarunw","inLanguage":"en","publisher":{"@type":"Organization","name":"daily.dev","url":"https://daily.dev","logo":{"@type":"ImageObject","url":"https://daily.dev/apple-touch-icon.png","width":180,"height":180}},"author":{"@type":"Person","name":"Sarun Wongpatcharapakorn","url":"https://daily.dev/sarunw","image":"https://avatars.githubusercontent.com/u/795368?v=4","interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"EndorseAction"},"userInteractionCount":20}},"commentCount":1,"discussionUrl":"https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8","interactionStatistic":[{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1},{"@type":"InteractionCounter","interactionType":{"@type":"CommentAction"},"userInteractionCount":1}],"keywords":"ios,swift,swiftui,safari","timeRequired":"PT5M"}
{"@context":"https://schema.org","@type":"BreadcrumbList","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https://daily.dev"},{"@type":"ListItem","position":2,"name":"Sarunw","item":"https://daily.dev/sources/sarunw"},{"@type":"ListItem","position":3,"name":"SwiftUI has a native WebView in iOS 26"}]}
{"@context":"https://schema.org","@type":"WebPage","@id":"https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8","comment":[{"@type":"Comment","text":"SwiftUI has been around for 7 years now, and still there is no feature parity with UIKit. I hope more is to come…","datePublished":"2026-09-08T14:46:22.666Z","url":"https://daily.dev/posts/r7vNB7uw8#c-ZLcQLgNO2","author":{"@type":"Person","name":"Mark Kazakov","url":"https://daily.dev/mark_kazakov","image":"https://media.daily.dev/image/upload/s--xbUWQzIM--/f_auto/v1743106084/avatars/avatar_DXWhIjQxKsp3WABroh08k"},"interactionStatistic":{"@type":"InteractionCounter","interactionType":{"@type":"LikeAction"},"userInteractionCount":1}}]}
{"@context":"https://schema.org","@type":"FAQPage","@id":"https://daily.dev/posts/swiftui-has-a-native-webview-in-ios-26-r7vnb7uw8#faq","mainEntity":[{"@type":"Question","name":"How do I show a web page in SwiftUI on iOS 26 without UIViewRepresentable?","acceptedAnswer":{"@type":"Answer","text":"iOS 26 adds a native WebView struct to SwiftUI, backed by WebKit, so WebView(url:) alone renders web content and accepts normal SwiftUI modifiers. It replaces the UIViewRepresentable wrapper around WKWebView that developers previously had to write and copy between projects. WebView only becomes visible when a file imports both SwiftUI and WebKit, since it ships as a cross-import overlay module. daily.dev surfaces SwiftUI platform changes like this for developers cutting legacy wrapper code."}},{"@type":"Question","name":"How do I track page title and loading progress with SwiftUI's WebView in iOS 26?","acceptedAnswer":{"@type":"Answer","text":"Create a WebPage instance, an Observable model that backs the WebView, and pass it to WebView(page) instead of a URL. Reading page.title, page.estimatedProgress, and page.url in the view updates automatically once the page loads, with no coordinator or delegate needed. WebPage also exposes backForwardList for navigation history and an async callJavaScript method. developers wiring up richer web views in SwiftUI can track API details like this on daily.dev."}},{"@type":"Question","name":"Do I still need UIViewRepresentable for WebView on iOS versions before iOS 26?","acceptedAnswer":{"@type":"Answer","text":"Yes, WebView and WebPage in SwiftUI are only available on iOS 26 and later, so apps supporting older deployment targets must keep the UIViewRepresentable-based WKWebView wrapper and branch at runtime using if #available(iOS 26.0, *) to choose the right implementation. teams juggling deployment targets can follow SwiftUI availability changes like this on daily.dev."}}]}
```

