isMainFrame
TypeScriptget isMainFrame(): Promise<boolean>Swift declaration@MainActor var isMainFrame: Bool { get }Indicates whether the frame is the web site's main frame or a subframe.
struct · iOS 26.0+ · SDK 27.1
@MainActor struct FrameInfoA type that contains information about a frame on a webpage.
get isMainFrame(): Promise<boolean>Swift declaration@MainActor var isMainFrame: Bool { get }Indicates whether the frame is the web site's main frame or a subframe.
get securityOrigin(): Promise<WKSecurityOrigin>Swift declaration@MainActor var securityOrigin: WKSecurityOrigin { get }The frame’s security origin.
get request(): Promise<_Foundation_URLRequest>Swift declaration@MainActor var request: URLRequest { get }The frame’s current request.
No declarations were skipped in this snapshot.