Information about a webpage.


class SFSafariPageProperties : NSObject


Use the properties object to retrieve page information, such as the current URL, page title, active status, and private browsing status.


Getting the Safari Page Properties

var isActive: Bool

A Boolean value that indicates whether the page is currently active.

var title: String?

The title of the page.

var url: URL?

Indicates the URL of the page.

var usesPrivateBrowsing: Bool

A Boolean value that indicates whether the page is using Safari Private Browsing.


Inherits From

Conforms To

See Also

Injecting Scripts and Style Sheets

About Injected Style Sheets and Scripts

Learn how you can affect the appearance or behavior of a webpage by using injected style sheets and scripts.

Injecting a Script into a Webpage

Inject a script that you've written from a Safari App Extension into a webpage.

Injecting CSS Style Sheets into a Webpage

Add to or override styles by injecting CSS style sheets into webpages.

Passing Messages Between Safari App Extensions and Injected Scripts

Pass data back and forth between Safari App Extension and injected scripts.

class SFSafariExtensionHandler

A base class that you subclass to handle events in your Safari app extension.

class SFSafariExtensionManager

A class used by your app to find out the current state of a Safari app extension.

class SFSafariExtensionState

The state of a Safari app extension.

protocol SFSafariExtensionHandling

A protocol used to implement event handling in a Safari app extension.