WebKit

The open source engine behind Safari, and the way to show web content in your app.

Introduced
2003
Mac OS X 10.2
Kind
Framework
Runs on
Get it from
iOS
8.0+
iPadOS
8.0+
Mac Catalyst
13.1+
macOS
10.2+
tvOS
visionOS
1.0+
watchOS

Overview

WebKit renders HTML, CSS and JavaScript for Safari and for every app that shows web content. In your app, a web view handles loading, navigation, history and communication with your native code.

Since WWDC25 SwiftUI has a native WebView, and WebKit itself is developed in the open at webkit.org.

WebView for SwiftUI

Native web views with WebPage.

Web views

WKWebView for UIKit and AppKit.

Open source

Developed in the open at webkit.org.

Safari 27

Customizable select, the model element and more.

DocsView.swift
import SwiftUI import WebKit struct DocsView: View { var body: some View { WebView(url: URL(string: "https://webkit.org")) .navigationTitle("WebKit") } }

History

How it grew up.

2003

Introduced

Powers Safari on Mac OS X.

2005

Open source

WebKit's full source is released.

2014

WKWebView

A modern web view for apps.

2025

SwiftUI

A native WebView for SwiftUI.