One Logo Pool Ball
UIKit · IOS API REFERENCE

UIWindow

class · iOS 2.0+ · SDK 27.1

@MainActor class UIWindow

Members (29)

get

didBecomeHiddenNotification

TypeScript
static get didBecomeHiddenNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didBecomeHiddenNotification: NSNotification.Name
get

didBecomeKeyNotification

TypeScript
static get didBecomeKeyNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didBecomeKeyNotification: NSNotification.Name
get

didBecomeVisibleNotification

TypeScript
static get didBecomeVisibleNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didBecomeVisibleNotification: NSNotification.Name
get

didResignKeyNotification

TypeScript
static get didResignKeyNotification(): Promise<_Foundation_NSNotification_Name>
Swift declaration
nonisolated class let didResignKeyNotification: NSNotification.Name
method · iOS 2.0+

becomeKey

TypeScript
becomeKey(): Promise<void>
Swift declaration
func becomeKey()
method · iOS 2.0+

convert

TypeScript
convertFrom(point: { x: number; y: number }, window?: (UIWindow) | null): Promise<{ x: number; y: number }>
Swift declaration
func convert(_ point: CGPoint, from window: UIWindow?) -> CGPoint
method · iOS 2.0+

convert

TypeScript
convertTo(point: { x: number; y: number }, window?: (UIWindow) | null): Promise<{ x: number; y: number }>
Swift declaration
func convert(_ point: CGPoint, to window: UIWindow?) -> CGPoint
method · iOS 2.0+

convert

TypeScript
convertFrom17933(rect: { x: number; y: number; width: number; height: number }, window?: (UIWindow) | null): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func convert(_ rect: CGRect, from window: UIWindow?) -> CGRect
method · iOS 2.0+

convert

TypeScript
convertTo21134(rect: { x: number; y: number; width: number; height: number }, window?: (UIWindow) | null): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func convert(_ rect: CGRect, to window: UIWindow?) -> CGRect
init · iOS 2.0+ · Deprecated in iOS 26.0

init

TypeScript
static init(): Promise<UIWindow>
Swift declaration
convenience init()
init · iOS 2.0+ · Deprecated in iOS 26.0

init

TypeScript
static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UIWindow>
Swift declaration
init(frame: CGRect)
init · iOS 13.0+

init

TypeScript
static initWindowScene(windowScene: UIWindowScene): Promise<UIWindow>
Swift declaration
init(windowScene: UIWindowScene)
method · iOS 2.0+

makeKeyAndVisible

TypeScript
makeKeyAndVisible(): Promise<void>
Swift declaration
func makeKeyAndVisible()
method · iOS 2.0+

makeKey

TypeScript
makeKey(): Promise<void>
Swift declaration
func makeKey()
method · iOS 2.0+

resignKey

TypeScript
resignKey(): Promise<void>
Swift declaration
func resignKey()
method · iOS 2.0+

sendEvent

TypeScript
sendEvent(event: UIEvent): Promise<void>
Swift declaration
func sendEvent(_ event: UIEvent)
get · iOS 15.0+

canBecomeKey

TypeScript
get canBecomeKey(): Promise<boolean>
Swift declaration
var canBecomeKey: Bool { get }
get · iOS 2.0+

canResizeToFitContent

TypeScript
get canResizeToFitContent(): Promise<boolean>
Swift declaration
var canResizeToFitContent: Bool { get set }
set · iOS 2.0+

canResizeToFitContent

TypeScript
setCanResizeToFitContent(value: boolean): Promise<void>
Swift declaration
var canResizeToFitContent: Bool { get set }
get · iOS 2.0+

isKeyWindow

TypeScript
get isKeyWindow(): Promise<boolean>
Swift declaration
var isKeyWindow: Bool { get }
get · iOS 4.0+

rootViewController

TypeScript
get rootViewController(): Promise<(UIViewController) | null>
Swift declaration
var rootViewController: UIViewController? { get set }
set · iOS 4.0+

rootViewController

TypeScript
setRootViewController(value?: (UIViewController) | null): Promise<void>
Swift declaration
var rootViewController: UIViewController? { get set }
get · iOS 16.0+

safeAreaAspectFitLayoutGuide

TypeScript
get safeAreaAspectFitLayoutGuide(): Promise<(UILayoutGuide) & (SDKHandle)>
Swift declaration
var safeAreaAspectFitLayoutGuide: any UILayoutGuide & UILayoutGuideAspectFitting { get }
get · iOS 3.2+

screen

TypeScript
get screen(): Promise<UIScreen>
Swift declaration
var screen: UIScreen { get set }
set · iOS 3.2+

screen

TypeScript
setScreen(value: UIScreen): Promise<void>
Swift declaration
var screen: UIScreen { get set }
get · iOS 2.0+

windowLevel

TypeScript
get windowLevel(): Promise<UIWindow_Level>
Swift declaration
var windowLevel: UIWindow.Level { get set }
set · iOS 2.0+

windowLevel

TypeScript
setWindowLevel(value: UIWindow_Level): Promise<void>
Swift declaration
var windowLevel: UIWindow.Level { get set }
get · iOS 13.0+

windowScene

TypeScript
get windowScene(): Promise<(UIWindowScene) | null>
Swift declaration
weak var windowScene: UIWindowScene? { get set }
set · iOS 13.0+

windowScene

TypeScript
setWindowScene(value?: (UIWindowScene) | null): Promise<void>
Swift declaration
weak var windowScene: UIWindowScene? { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →