Web Views

A web view loads and displays rich web content, such as embedded HTML and websites, directly within your app. For example, Mail uses a web view to show HTML content in messages.

Screenshot of a compose window in Mail that uses a web view to display content.

Enable forward and back navigation when appropriate. Web views support forward and back navigation, but this behavior is disabled by default. If people will use your web view to visit multiple pages, enable forward and back navigation, and provide controls to initiate them.

Avoid using a web view to build a web browser. Using a web view to let people briefly access a website without leaving the context of your app is fine, but Safari is the primary way people browse the web on macOS. Attempting to replicate the functionality of Safari in your app is unnecessary and discouraged.

For developer guidance, see WKWebView.