One Logo Pool Ball
UIKit · IOS API REFERENCE

UIView

class · iOS 2.0+ · SDK 27.1

@MainActor class UIView

Members (244)

get · iOS 6.0+

layoutFittingCompressedSize

TypeScript
static get layoutFittingCompressedSize(): Promise<{ width: number; height: number }>
Swift declaration
class let layoutFittingCompressedSize: CGSize
get · iOS 6.0+

layoutFittingExpandedSize

TypeScript
static get layoutFittingExpandedSize(): Promise<{ width: number; height: number }>
Swift declaration
class let layoutFittingExpandedSize: CGSize
get · iOS 6.0+

noIntrinsicMetric

TypeScript
static get noIntrinsicMetric(): Promise<number>
Swift declaration
class let noIntrinsicMetric: CGFloat
static · iOS 7.0+

addKeyframe

TypeScript
static addKeyframe(frameStartTime: number, frameDuration: number, animations: (() => void)): Promise<void>
Swift declaration
class func addKeyframe(withRelativeStartTime frameStartTime: Double, relativeDuration frameDuration: Double, animations: @escaping () -> Void)
static · iOS 7.0+

animateKeyframes

TypeScript
static animateKeyframes(duration: number, delay: number, options: UIView_KeyframeAnimationOptions, animations: (() => void), completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
class func animateKeyframes(withDuration duration: TimeInterval, delay: TimeInterval, options: UIView.KeyframeAnimationOptions = [], animations: @escaping () -> Void) async -> Bool
static · iOS 4.0+

animate

TypeScript
static animateWithDurationAnimations(duration: number, animations: (() => void)): Promise<void>
Swift declaration
class func animate(withDuration duration: TimeInterval, animations: @escaping () -> Void)
static · iOS 4.0+

animate

TypeScript
static animateWithDurationAnimationsCompletion(duration: number, animations: (() => void), completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
class func animate(withDuration duration: TimeInterval, animations: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)
static · iOS 4.0+

animate

TypeScript
static animateWithDurationDelayOptionsAnimationsCompletion(duration: number, delay: number, options: UIView_AnimationOptions, animations: (() => void), completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
class func animate(withDuration duration: TimeInterval, delay: TimeInterval, options: UIView.AnimationOptions = [], animations: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)
static · iOS 7.0+

animate

TypeScript
static animateWithDurationDelayUsingSpringWithDampingInitialSpringVelocityOptionsAnimationsCompletion(duration: number, delay: number, dampingRatio: number, velocity: number, options: UIView_AnimationOptions, animations: (() => void), completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
class func animate(withDuration duration: TimeInterval, delay: TimeInterval, usingSpringWithDamping dampingRatio: CGFloat, initialSpringVelocity velocity: CGFloat, options: UIView.AnimationOptions = [], animations: @escaping () -> Void, completion: ((Bool) -> Void)? = nil)
static · iOS 2.0+ · Deprecated in iOS 13.0

beginAnimations

TypeScript
static beginAnimations(animationID?: (string) | null, context?: (SDKHandle) | null): Promise<void>
Swift declaration
class func beginAnimations(_ animationID: String?, context: UnsafeMutableRawPointer?)
static · iOS 2.0+ · Deprecated in iOS 13.0

commitAnimations

TypeScript
static commitAnimations(): Promise<void>
Swift declaration
class func commitAnimations()
static · iOS 13.0+

modifyAnimations

TypeScript
static modifyAnimations(count: number, autoreverses: boolean, animations: (() => void)): Promise<void>
Swift declaration
class func modifyAnimations(withRepeatCount count: CGFloat, autoreverses: Bool, animations: () -> Void)
static · iOS 7.0+

perform

TypeScript
static perform(animation: UIView_SystemAnimation, views: Array<UIView>, options?: UIView_AnimationOptions, parallelAnimations?: ((() => void)) | null, completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
class func perform(_ animation: UIView.SystemAnimation, on views: [UIView], options: UIView.AnimationOptions = [], animations parallelAnimations: (() -> Void)?, completion: ((Bool) -> Void)? = nil)
static · iOS 7.0+

performWithoutAnimation

TypeScript
static performWithoutAnimation(actionsWithoutAnimation: (() => void)): Promise<void>
Swift declaration
class func performWithoutAnimation(_ actionsWithoutAnimation: () -> Void)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationBeginsFromCurrentState

TypeScript
static setAnimationBeginsFromCurrentState(fromCurrentState: boolean): Promise<void>
Swift declaration
class func setAnimationBeginsFromCurrentState(_ fromCurrentState: Bool)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationCurve

TypeScript
static setAnimationCurve(curve: UIView_AnimationCurve): Promise<void>
Swift declaration
class func setAnimationCurve(_ curve: UIView.AnimationCurve)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationDelay

TypeScript
static setAnimationDelay(delay: number): Promise<void>
Swift declaration
class func setAnimationDelay(_ delay: TimeInterval)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationDelegate

TypeScript
static setAnimationDelegate(delegate?: (unknown) | null): Promise<void>
Swift declaration
class func setAnimationDelegate(_ delegate: Any?)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationDuration

TypeScript
static setAnimationDuration(duration: number): Promise<void>
Swift declaration
class func setAnimationDuration(_ duration: TimeInterval)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationRepeatAutoreverses

TypeScript
static setAnimationRepeatAutoreverses(repeatAutoreverses: boolean): Promise<void>
Swift declaration
class func setAnimationRepeatAutoreverses(_ repeatAutoreverses: Bool)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationRepeatCount

TypeScript
static setAnimationRepeatCount(repeatCount: number): Promise<void>
Swift declaration
class func setAnimationRepeatCount(_ repeatCount: Float)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationStart

TypeScript
static setAnimationStart(startDate: globalThis.Date): Promise<void>
Swift declaration
class func setAnimationStart(_ startDate: Date)
static · iOS 2.0+ · Deprecated in iOS 13.0

setAnimationTransition

TypeScript
static setAnimationTransition(transition: UIView_AnimationTransition, view: UIView, cache: boolean): Promise<void>
Swift declaration
class func setAnimationTransition(_ transition: UIView.AnimationTransition, for view: UIView, cache: Bool)
static

setAnimationsEnabled

TypeScript
static setAnimationsEnabled(enabled: boolean): Promise<void>
Swift declaration
class func setAnimationsEnabled(_ enabled: Bool)
static · iOS 4.0+

transition

TypeScript
static transitionFromToDurationOptionsCompletion(fromView: UIView, toView: UIView, duration: number, options?: UIView_AnimationOptions, completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
class func transition(from fromView: UIView, to toView: UIView, duration: TimeInterval, options: UIView.AnimationOptions = [], completion: ((Bool) -> Void)? = nil)
static · iOS 4.0+

transition

TypeScript
static transitionWithDurationOptionsAnimationsCompletion(view: UIView, duration: number, options?: UIView_AnimationOptions, animations?: ((() => void)) | null, completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
class func transition(with view: UIView, duration: TimeInterval, options: UIView.AnimationOptions = [], animations: (() -> Void)?, completion: ((Bool) -> Void)? = nil)
static · iOS 9.0+

userInterfaceLayoutDirection

TypeScript
static userInterfaceLayoutDirectionFor(attribute: UISemanticContentAttribute): Promise<UIUserInterfaceLayoutDirection>
Swift declaration
class func userInterfaceLayoutDirection(for attribute: UISemanticContentAttribute) -> UIUserInterfaceLayoutDirection
static · iOS 10.0+

userInterfaceLayoutDirection

TypeScript
static userInterfaceLayoutDirectionForRelativeTo(semanticContentAttribute: UISemanticContentAttribute, layoutDirection: UIUserInterfaceLayoutDirection): Promise<UIUserInterfaceLayoutDirection>
Swift declaration
class func userInterfaceLayoutDirection(for semanticContentAttribute: UISemanticContentAttribute, relativeTo layoutDirection: UIUserInterfaceLayoutDirection) -> UIUserInterfaceLayoutDirection
get

areAnimationsEnabled

TypeScript
static get areAnimationsEnabled(): Promise<boolean>
Swift declaration
class var areAnimationsEnabled: Bool { get }
get · iOS 9.0+

inheritedAnimationDuration

TypeScript
static get inheritedAnimationDuration(): Promise<number>
Swift declaration
class var inheritedAnimationDuration: TimeInterval { get }
get · iOS 2.0+

layerClass

TypeScript
static get layerClass(): Promise<string>
Swift declaration
class var layerClass: AnyClass { get }
get · iOS 6.0+

requiresConstraintBasedLayout

TypeScript
static get requiresConstraintBasedLayout(): Promise<boolean>
Swift declaration
class var requiresConstraintBasedLayout: Bool { get }
method · iOS 6.0+

addConstraint

TypeScript
addConstraint(constraint: NSLayoutConstraint): Promise<void>
Swift declaration
func addConstraint(_ constraint: NSLayoutConstraint)
method · iOS 6.0+

addConstraints

TypeScript
addConstraints(constraints: Array<NSLayoutConstraint>): Promise<void>
Swift declaration
func addConstraints(_ constraints: [NSLayoutConstraint])
method · iOS 3.2+

addGestureRecognizer

TypeScript
addGestureRecognizer(gestureRecognizer: UIGestureRecognizer): Promise<void>
Swift declaration
func addGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer)
method · iOS 11.0+

addInteraction

TypeScript
addInteraction(interaction: SDKHandle): Promise<void>
Swift declaration
func addInteraction(_ interaction: any UIInteraction)
method · iOS 9.0+

addLayoutGuide

TypeScript
addLayoutGuide(layoutGuide: UILayoutGuide): Promise<void>
Swift declaration
func addLayoutGuide(_ layoutGuide: UILayoutGuide)
method · iOS 7.0+

addMotionEffect

TypeScript
addMotionEffect(effect: UIMotionEffect): Promise<void>
Swift declaration
func addMotionEffect(_ effect: UIMotionEffect)
method

addSubview

TypeScript
addSubview(view: UIView): Promise<void>
Swift declaration
func addSubview(_ view: UIView)
method · iOS 6.0+

alignmentRect

TypeScript
alignmentRect(frame: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func alignmentRect(forFrame frame: CGRect) -> CGRect
method

bringSubviewToFront

TypeScript
bringSubviewToFront(view: UIView): Promise<void>
Swift declaration
func bringSubviewToFront(_ view: UIView)
method · iOS 6.0+

constraintsAffectingLayout

TypeScript
constraintsAffectingLayout(axis: NSLayoutConstraint_Axis): Promise<Array<NSLayoutConstraint>>
Swift declaration
func constraintsAffectingLayout(for axis: NSLayoutConstraint.Axis) -> [NSLayoutConstraint]
method · iOS 6.0+

contentCompressionResistancePriority

TypeScript
contentCompressionResistancePriority(axis: NSLayoutConstraint_Axis): Promise<UILayoutPriority>
Swift declaration
func contentCompressionResistancePriority(for axis: NSLayoutConstraint.Axis) -> UILayoutPriority
method · iOS 6.0+

contentHuggingPriority

TypeScript
contentHuggingPriority(axis: NSLayoutConstraint_Axis): Promise<UILayoutPriority>
Swift declaration
func contentHuggingPriority(for axis: NSLayoutConstraint.Axis) -> UILayoutPriority
method

convert

TypeScript
convertFrom(point: { x: number; y: number }, view?: (UIView) | null): Promise<{ x: number; y: number }>
Swift declaration
func convert(_ point: CGPoint, from view: UIView?) -> CGPoint
method

convert

TypeScript
convertTo(point: { x: number; y: number }, view?: (UIView) | null): Promise<{ x: number; y: number }>
Swift declaration
func convert(_ point: CGPoint, to view: UIView?) -> CGPoint
method

convert

TypeScript
convertFrom46065(rect: { x: number; y: number; width: number; height: number }, view?: (UIView) | null): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func convert(_ rect: CGRect, from view: UIView?) -> CGRect
method

convert

TypeScript
convertTo56186(rect: { x: number; y: number; width: number; height: number }, view?: (UIView) | null): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func convert(_ rect: CGRect, to view: UIView?) -> CGRect
method · iOS 6.0+

decodeRestorableState

TypeScript
decodeRestorableState(coder: _Foundation_NSCoder): Promise<void>
Swift declaration
func decodeRestorableState(with coder: NSCoder)
method

didAddSubview

TypeScript
didAddSubview(subview: UIView): Promise<void>
Swift declaration
func didAddSubview(_ subview: UIView)
method

didMoveToSuperview

TypeScript
didMoveToSuperview(): Promise<void>
Swift declaration
func didMoveToSuperview()
method

didMoveToWindow

TypeScript
didMoveToWindow(): Promise<void>
Swift declaration
func didMoveToWindow()
method

draw

TypeScript
draw(rect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func draw(_ rect: CGRect)
method

draw

TypeScript
drawFor(rect: { x: number; y: number; width: number; height: number }, formatter: UIViewPrintFormatter): Promise<void>
Swift declaration
func draw(_ rect: CGRect, for formatter: UIViewPrintFormatter)
method · iOS 7.0+

drawHierarchy

TypeScript
drawHierarchy(rect: { x: number; y: number; width: number; height: number }, afterUpdates: boolean): Promise<boolean>
Swift declaration
func drawHierarchy(in rect: CGRect, afterScreenUpdates afterUpdates: Bool) -> Bool
method · iOS 26.0+

effectiveRadius

TypeScript
effectiveRadius(corner: UIRectCorner): Promise<number>
Swift declaration
func effectiveRadius(corner: UIRectCorner) -> CGFloat
method · iOS 6.0+

encodeRestorableState

TypeScript
encodeRestorableState(coder: _Foundation_NSCoder): Promise<void>
Swift declaration
func encodeRestorableState(with coder: NSCoder)
method

endEditing

TypeScript
endEditing(force: boolean): Promise<boolean>
Swift declaration
func endEditing(_ force: Bool) -> Bool
method

exchangeSubview

TypeScript
exchangeSubview(index1: number, index2: number): Promise<void>
Swift declaration
func exchangeSubview(at index1: Int, withSubviewAt index2: Int)
method · iOS 6.0+

exerciseAmbiguityInLayout

TypeScript
exerciseAmbiguityInLayout(): Promise<void>
Swift declaration
func exerciseAmbiguityInLayout()
method · iOS 6.0+

frame

TypeScript
frameForAlignmentRect(alignmentRect: { x: number; y: number; width: number; height: number }): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
func frame(forAlignmentRect alignmentRect: CGRect) -> CGRect
method · iOS 6.0+

gestureRecognizerShouldBegin

TypeScript
gestureRecognizerShouldBegin(gestureRecognizer: UIGestureRecognizer): Promise<boolean>
Swift declaration
func gestureRecognizerShouldBegin(_ gestureRecognizer: UIGestureRecognizer) -> Bool
method

hitTest

TypeScript
hitTest(point: { x: number; y: number }, event?: (UIEvent) | null): Promise<(UIView) | null>
Swift declaration
func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView?
init · iOS 2.0+

init

TypeScript
static init(): Promise<UIView>
Swift declaration
convenience init()
init · iOS 2.0+

init

TypeScript
static initCoder(coder: _Foundation_NSCoder): Promise<(UIView) | null>
Swift declaration
init?(coder: NSCoder)
init · iOS 2.0+

init

TypeScript
static initFrame(frame: { x: number; y: number; width: number; height: number }): Promise<UIView>
Swift declaration
init(frame: CGRect)
method

insertSubview

TypeScript
insertSubviewAboveSubview(view: UIView, siblingSubview: UIView): Promise<void>
Swift declaration
func insertSubview(_ view: UIView, aboveSubview siblingSubview: UIView)
method

insertSubview

TypeScript
insertSubviewAt(view: UIView, index: number): Promise<void>
Swift declaration
func insertSubview(_ view: UIView, at index: Int)
method

insertSubview

TypeScript
insertSubviewBelowSubview(view: UIView, siblingSubview: UIView): Promise<void>
Swift declaration
func insertSubview(_ view: UIView, belowSubview siblingSubview: UIView)
method · iOS 6.0+

invalidateIntrinsicContentSize

TypeScript
invalidateIntrinsicContentSize(): Promise<void>
Swift declaration
func invalidateIntrinsicContentSize()
method

isDescendant

TypeScript
isDescendant(view: UIView): Promise<boolean>
Swift declaration
func isDescendant(of view: UIView) -> Bool
method

layoutIfNeeded

TypeScript
layoutIfNeeded(): Promise<void>
Swift declaration
func layoutIfNeeded()
method · iOS 8.0+

layoutMarginsDidChange

TypeScript
layoutMarginsDidChange(): Promise<void>
Swift declaration
func layoutMarginsDidChange()
method

layoutSubviews

TypeScript
layoutSubviews(): Promise<void>
Swift declaration
func layoutSubviews()
method · iOS 6.0+

needsUpdateConstraints

TypeScript
needsUpdateConstraints(): Promise<boolean>
Swift declaration
func needsUpdateConstraints() -> Bool
method

point

TypeScript
point(point: { x: number; y: number }, event?: (UIEvent) | null): Promise<boolean>
Swift declaration
func point(inside point: CGPoint, with event: UIEvent?) -> Bool
method · iOS 6.0+

removeConstraint

TypeScript
removeConstraint(constraint: NSLayoutConstraint): Promise<void>
Swift declaration
func removeConstraint(_ constraint: NSLayoutConstraint)
method · iOS 6.0+

removeConstraints

TypeScript
removeConstraints(constraints: Array<NSLayoutConstraint>): Promise<void>
Swift declaration
func removeConstraints(_ constraints: [NSLayoutConstraint])
method

removeFromSuperview

TypeScript
removeFromSuperview(): Promise<void>
Swift declaration
func removeFromSuperview()
method · iOS 3.2+

removeGestureRecognizer

TypeScript
removeGestureRecognizer(gestureRecognizer: UIGestureRecognizer): Promise<void>
Swift declaration
func removeGestureRecognizer(_ gestureRecognizer: UIGestureRecognizer)
method · iOS 11.0+

removeInteraction

TypeScript
removeInteraction(interaction: SDKHandle): Promise<void>
Swift declaration
func removeInteraction(_ interaction: any UIInteraction)
method · iOS 9.0+

removeLayoutGuide

TypeScript
removeLayoutGuide(layoutGuide: UILayoutGuide): Promise<void>
Swift declaration
func removeLayoutGuide(_ layoutGuide: UILayoutGuide)
method · iOS 7.0+

removeMotionEffect

TypeScript
removeMotionEffect(effect: UIMotionEffect): Promise<void>
Swift declaration
func removeMotionEffect(_ effect: UIMotionEffect)
method · iOS 7.0+

resizableSnapshotView

TypeScript
resizableSnapshotView(rect: { x: number; y: number; width: number; height: number }, afterUpdates: boolean, capInsets: { top: number; left: number; bottom: number; right: number }): Promise<(UIView) | null>
Swift declaration
func resizableSnapshotView(from rect: CGRect, afterScreenUpdates afterUpdates: Bool, withCapInsets capInsets: UIEdgeInsets) -> UIView?
method · iOS 11.0+

safeAreaInsetsDidChange

TypeScript
safeAreaInsetsDidChange(): Promise<void>
Swift declaration
func safeAreaInsetsDidChange()
method

sendSubviewToBack

TypeScript
sendSubviewToBack(view: UIView): Promise<void>
Swift declaration
func sendSubviewToBack(_ view: UIView)
method · iOS 6.0+

setContentCompressionResistancePriority

TypeScript
setContentCompressionResistancePriority(priority: UILayoutPriority, axis: NSLayoutConstraint_Axis): Promise<void>
Swift declaration
func setContentCompressionResistancePriority(_ priority: UILayoutPriority, for axis: NSLayoutConstraint.Axis)
method · iOS 6.0+

setContentHuggingPriority

TypeScript
setContentHuggingPriority(priority: UILayoutPriority, axis: NSLayoutConstraint_Axis): Promise<void>
Swift declaration
func setContentHuggingPriority(_ priority: UILayoutPriority, for axis: NSLayoutConstraint.Axis)
method

setNeedsDisplay

TypeScript
setNeedsDisplay(): Promise<void>
Swift declaration
func setNeedsDisplay()
method

setNeedsDisplay

TypeScript
setNeedsDisplay11691(rect: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
func setNeedsDisplay(_ rect: CGRect)
method

setNeedsLayout

TypeScript
setNeedsLayout(): Promise<void>
Swift declaration
func setNeedsLayout()
method · iOS 6.0+

setNeedsUpdateConstraints

TypeScript
setNeedsUpdateConstraints(): Promise<void>
Swift declaration
func setNeedsUpdateConstraints()
method · iOS 26.0+

setNeedsUpdateProperties

TypeScript
setNeedsUpdateProperties(): Promise<void>
Swift declaration
func setNeedsUpdateProperties()
method

sizeThatFits

TypeScript
sizeThatFits(size: { width: number; height: number }): Promise<{ width: number; height: number }>
Swift declaration
func sizeThatFits(_ size: CGSize) -> CGSize
method

sizeToFit

TypeScript
sizeToFit(): Promise<void>
Swift declaration
func sizeToFit()
method · iOS 7.0+

snapshotView

TypeScript
snapshotView(afterUpdates: boolean): Promise<(UIView) | null>
Swift declaration
func snapshotView(afterScreenUpdates afterUpdates: Bool) -> UIView?
method · iOS 6.0+

systemLayoutSizeFitting

TypeScript
systemLayoutSizeFitting(targetSize: { width: number; height: number }): Promise<{ width: number; height: number }>
Swift declaration
func systemLayoutSizeFitting(_ targetSize: CGSize) -> CGSize
method · iOS 8.0+

systemLayoutSizeFitting

TypeScript
systemLayoutSizeFittingWithHorizontalFittingPriorityVerticalFittingPriority(targetSize: { width: number; height: number }, horizontalFittingPriority: UILayoutPriority, verticalFittingPriority: UILayoutPriority): Promise<{ width: number; height: number }>
Swift declaration
func systemLayoutSizeFitting(_ targetSize: CGSize, withHorizontalFittingPriority horizontalFittingPriority: UILayoutPriority, verticalFittingPriority: UILayoutPriority) -> CGSize
method · iOS 7.0+

tintColorDidChange

TypeScript
tintColorDidChange(): Promise<void>
Swift declaration
func tintColorDidChange()
method · iOS 6.0+

updateConstraints

TypeScript
updateConstraints(): Promise<void>
Swift declaration
func updateConstraints()
method · iOS 6.0+

updateConstraintsIfNeeded

TypeScript
updateConstraintsIfNeeded(): Promise<void>
Swift declaration
func updateConstraintsIfNeeded()
method · iOS 26.0+

updateProperties

TypeScript
updateProperties(): Promise<void>
Swift declaration
func updateProperties()
method · iOS 26.0+

updatePropertiesIfNeeded

TypeScript
updatePropertiesIfNeeded(): Promise<void>
Swift declaration
func updatePropertiesIfNeeded()
method · iOS 17.0+

updateTraitsIfNeeded

TypeScript
updateTraitsIfNeeded(): Promise<void>
Swift declaration
func updateTraitsIfNeeded()
method · iOS 6.0+ · Deprecated in iOS 9.0

forBaselineLayout

TypeScript
forBaselineLayout(): Promise<UIView>
Swift declaration
func forBaselineLayout() -> UIView
method

viewPrintFormatter

TypeScript
viewPrintFormatter(): Promise<UIViewPrintFormatter>
Swift declaration
func viewPrintFormatter() -> UIViewPrintFormatter
method

viewWithTag

TypeScript
viewWithTag(tag: number): Promise<(UIView) | null>
Swift declaration
func viewWithTag(_ tag: Int) -> UIView?
method

willMove

TypeScript
willMoveToSuperview(newSuperview?: (UIView) | null): Promise<void>
Swift declaration
func willMove(toSuperview newSuperview: UIView?)
method

willMove

TypeScript
willMoveToWindow(newWindow?: (UIWindow) | null): Promise<void>
Swift declaration
func willMove(toWindow newWindow: UIWindow?)
method

willRemoveSubview

TypeScript
willRemoveSubview(subview: UIView): Promise<void>
Swift declaration
func willRemoveSubview(_ subview: UIView)
get · iOS 11.0+

accessibilityIgnoresInvertColors

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

accessibilityIgnoresInvertColors

TypeScript
setAccessibilityIgnoresInvertColors(value: boolean): Promise<void>
Swift declaration
var accessibilityIgnoresInvertColors: Bool { get set }
get · iOS 6.0+

alignmentRectInsets

TypeScript
get alignmentRectInsets(): Promise<{ top: number; left: number; bottom: number; right: number }>
Swift declaration
var alignmentRectInsets: UIEdgeInsets { get }
get

alpha

TypeScript
get alpha(): Promise<number>
Swift declaration
var alpha: CGFloat { get set }
set

alpha

TypeScript
setAlpha(value: number): Promise<void>
Swift declaration
var alpha: CGFloat { get set }
get · iOS 16.0+

anchorPoint

TypeScript
get anchorPoint(): Promise<{ x: number; y: number }>
Swift declaration
var anchorPoint: CGPoint { get set }
set · iOS 16.0+

anchorPoint

TypeScript
setAnchorPoint(value: { x: number; y: number }): Promise<void>
Swift declaration
var anchorPoint: CGPoint { get set }
get · iOS 15.0+

appliedContentSizeCategoryLimitsDescription

TypeScript
get appliedContentSizeCategoryLimitsDescription(): Promise<string>
Swift declaration
var appliedContentSizeCategoryLimitsDescription: String { get }
get

autoresizesSubviews

TypeScript
get autoresizesSubviews(): Promise<boolean>
Swift declaration
var autoresizesSubviews: Bool { get set }
set

autoresizesSubviews

TypeScript
setAutoresizesSubviews(value: boolean): Promise<void>
Swift declaration
var autoresizesSubviews: Bool { get set }
get

autoresizingMask

TypeScript
get autoresizingMask(): Promise<UIView_AutoresizingMask>
Swift declaration
var autoresizingMask: UIView.AutoresizingMask { get set }
set

autoresizingMask

TypeScript
setAutoresizingMask(value: UIView_AutoresizingMask): Promise<void>
Swift declaration
var autoresizingMask: UIView.AutoresizingMask { get set }
get

backgroundColor

TypeScript
get backgroundColor(): Promise<(UIColor) | null>
Swift declaration
@NSCopying var backgroundColor: UIColor? { get set }
set

backgroundColor

TypeScript
setBackgroundColor(value?: (UIColor) | null): Promise<void>
Swift declaration
@NSCopying var backgroundColor: UIColor? { get set }
get · iOS 9.0+

bottomAnchor

TypeScript
get bottomAnchor(): Promise<NSLayoutYAxisAnchor>
Swift declaration
var bottomAnchor: NSLayoutYAxisAnchor { get }
get

bounds

TypeScript
get bounds(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
var bounds: CGRect { get set }
set

bounds

TypeScript
setBounds(value: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
var bounds: CGRect { get set }
get · iOS 9.0+

canBecomeFocused

TypeScript
get canBecomeFocused(): Promise<boolean>
Swift declaration
var canBecomeFocused: Bool { get }
get

center

TypeScript
get center(): Promise<{ x: number; y: number }>
Swift declaration
var center: CGPoint { get set }
set

center

TypeScript
setCenter(value: { x: number; y: number }): Promise<void>
Swift declaration
var center: CGPoint { get set }
get · iOS 9.0+

centerXAnchor

TypeScript
get centerXAnchor(): Promise<NSLayoutXAxisAnchor>
Swift declaration
var centerXAnchor: NSLayoutXAxisAnchor { get }
get · iOS 9.0+

centerYAnchor

TypeScript
get centerYAnchor(): Promise<NSLayoutYAxisAnchor>
Swift declaration
var centerYAnchor: NSLayoutYAxisAnchor { get }
get

clearsContextBeforeDrawing

TypeScript
get clearsContextBeforeDrawing(): Promise<boolean>
Swift declaration
var clearsContextBeforeDrawing: Bool { get set }
set

clearsContextBeforeDrawing

TypeScript
setClearsContextBeforeDrawing(value: boolean): Promise<void>
Swift declaration
var clearsContextBeforeDrawing: Bool { get set }
get

clipsToBounds

TypeScript
get clipsToBounds(): Promise<boolean>
Swift declaration
var clipsToBounds: Bool { get set }
set

clipsToBounds

TypeScript
setClipsToBounds(value: boolean): Promise<void>
Swift declaration
var clipsToBounds: Bool { get set }
get · iOS 6.0+

constraints

TypeScript
get constraints(): Promise<Array<NSLayoutConstraint>>
Swift declaration
var constraints: [NSLayoutConstraint] { get }
get

contentMode

TypeScript
get contentMode(): Promise<UIView_ContentMode>
Swift declaration
var contentMode: UIView.ContentMode { get set }
set

contentMode

TypeScript
setContentMode(value: UIView_ContentMode): Promise<void>
Swift declaration
var contentMode: UIView.ContentMode { get set }
get · iOS 4.0+

contentScaleFactor

TypeScript
get contentScaleFactor(): Promise<number>
Swift declaration
var contentScaleFactor: CGFloat { get set }
set · iOS 4.0+

contentScaleFactor

TypeScript
setContentScaleFactor(value: number): Promise<void>
Swift declaration
var contentScaleFactor: CGFloat { get set }
get · iOS 11.0+

directionalLayoutMargins

TypeScript
get directionalLayoutMargins(): Promise<{ top: number; leading: number; bottom: number; trailing: number }>
Swift declaration
var directionalLayoutMargins: NSDirectionalEdgeInsets { get set }
set · iOS 11.0+

directionalLayoutMargins

TypeScript
setDirectionalLayoutMargins(value: { top: number; leading: number; bottom: number; trailing: number }): Promise<void>
Swift declaration
var directionalLayoutMargins: NSDirectionalEdgeInsets { get set }
get · iOS 10.0+

effectiveUserInterfaceLayoutDirection

TypeScript
get effectiveUserInterfaceLayoutDirection(): Promise<UIUserInterfaceLayoutDirection>
Swift declaration
var effectiveUserInterfaceLayoutDirection: UIUserInterfaceLayoutDirection { get }
get

isExclusiveTouch

TypeScript
get isExclusiveTouch(): Promise<boolean>
Swift declaration
var isExclusiveTouch: Bool { get set }
set

isExclusiveTouch

TypeScript
setIsExclusiveTouch(value: boolean): Promise<void>
Swift declaration
var isExclusiveTouch: Bool { get set }
get · iOS 9.0+

firstBaselineAnchor

TypeScript
get firstBaselineAnchor(): Promise<NSLayoutYAxisAnchor>
Swift declaration
var firstBaselineAnchor: NSLayoutYAxisAnchor { get }
get · iOS 15.0+

focusEffect

TypeScript
get focusEffect(): Promise<(UIFocusEffect) | null>
Swift declaration
@NSCopying var focusEffect: UIFocusEffect? { get set }
set · iOS 15.0+

focusEffect

TypeScript
setFocusEffect(value?: (UIFocusEffect) | null): Promise<void>
Swift declaration
@NSCopying var focusEffect: UIFocusEffect? { get set }
get · iOS 14.0+

focusGroupIdentifier

TypeScript
get focusGroupIdentifier(): Promise<(string) | null>
Swift declaration
var focusGroupIdentifier: String? { get set }
set · iOS 14.0+

focusGroupIdentifier

TypeScript
setFocusGroupIdentifier(value?: (string) | null): Promise<void>
Swift declaration
var focusGroupIdentifier: String? { get set }
get · iOS 15.0+

focusGroupPriority

TypeScript
get focusGroupPriority(): Promise<UIFocusGroupPriority>
Swift declaration
var focusGroupPriority: UIFocusGroupPriority { get set }
set · iOS 15.0+

focusGroupPriority

TypeScript
setFocusGroupPriority(value: UIFocusGroupPriority): Promise<void>
Swift declaration
var focusGroupPriority: UIFocusGroupPriority { get set }
get · iOS 9.0+

isFocused

TypeScript
get isFocused(): Promise<boolean>
Swift declaration
var isFocused: Bool { get }
get

frame

TypeScript
get frame(): Promise<{ x: number; y: number; width: number; height: number }>
Swift declaration
var frame: CGRect { get set }
set

frame

TypeScript
setFrame(value: { x: number; y: number; width: number; height: number }): Promise<void>
Swift declaration
var frame: CGRect { get set }
get · iOS 3.2+

gestureRecognizers

TypeScript
get gestureRecognizers(): Promise<(Array<UIGestureRecognizer>) | null>
Swift declaration
var gestureRecognizers: [UIGestureRecognizer]? { get set }
set · iOS 3.2+

gestureRecognizers

TypeScript
setGestureRecognizers(value?: (Array<UIGestureRecognizer>) | null): Promise<void>
Swift declaration
var gestureRecognizers: [UIGestureRecognizer]? { get set }
get · iOS 6.0+

hasAmbiguousLayout

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

heightAnchor

TypeScript
get heightAnchor(): Promise<NSLayoutDimension>
Swift declaration
var heightAnchor: NSLayoutDimension { get }
get

isHidden

TypeScript
get isHidden(): Promise<boolean>
Swift declaration
var isHidden: Bool { get set }
set

isHidden

TypeScript
setIsHidden(value: boolean): Promise<void>
Swift declaration
var isHidden: Bool { get set }
get · iOS 17.0+

hoverStyle

TypeScript
get hoverStyle(): Promise<(UIHoverStyle) | null>
Swift declaration
@NSCopying var hoverStyle: UIHoverStyle? { get set }
set · iOS 17.0+

hoverStyle

TypeScript
setHoverStyle(value?: (UIHoverStyle) | null): Promise<void>
Swift declaration
@NSCopying var hoverStyle: UIHoverStyle? { get set }
get · iOS 11.0+

insetsLayoutMarginsFromSafeArea

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

insetsLayoutMarginsFromSafeArea

TypeScript
setInsetsLayoutMarginsFromSafeArea(value: boolean): Promise<void>
Swift declaration
var insetsLayoutMarginsFromSafeArea: Bool { get set }
get · iOS 11.0+

interactions

TypeScript
get interactions(): Promise<Array<SDKHandle>>
Swift declaration
var interactions: [any UIInteraction] { get set }
set · iOS 11.0+

interactions

TypeScript
setInteractions(value: Array<SDKHandle>): Promise<void>
Swift declaration
var interactions: [any UIInteraction] { get set }
get · iOS 6.0+

intrinsicContentSize

TypeScript
get intrinsicContentSize(): Promise<{ width: number; height: number }>
Swift declaration
var intrinsicContentSize: CGSize { get }
get · iOS 15.0+

keyboardLayoutGuide

TypeScript
get keyboardLayoutGuide(): Promise<UIKeyboardLayoutGuide>
Swift declaration
var keyboardLayoutGuide: UIKeyboardLayoutGuide { get }
get · iOS 13.0+

largeContentImage

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

largeContentImage

TypeScript
setLargeContentImage(value?: (UIImage) | null): Promise<void>
Swift declaration
var largeContentImage: UIImage? { get set }
get · iOS 13.0+

largeContentImageInsets

TypeScript
get largeContentImageInsets(): Promise<{ top: number; left: number; bottom: number; right: number }>
Swift declaration
var largeContentImageInsets: UIEdgeInsets { get set }
set · iOS 13.0+

largeContentImageInsets

TypeScript
setLargeContentImageInsets(value: { top: number; left: number; bottom: number; right: number }): Promise<void>
Swift declaration
var largeContentImageInsets: UIEdgeInsets { get set }
get · iOS 13.0+

largeContentTitle

TypeScript
get largeContentTitle(): Promise<(string) | null>
Swift declaration
var largeContentTitle: String? { get set }
set · iOS 13.0+

largeContentTitle

TypeScript
setLargeContentTitle(value?: (string) | null): Promise<void>
Swift declaration
var largeContentTitle: String? { get set }
get · iOS 9.0+

lastBaselineAnchor

TypeScript
get lastBaselineAnchor(): Promise<NSLayoutYAxisAnchor>
Swift declaration
var lastBaselineAnchor: NSLayoutYAxisAnchor { get }
get · iOS 2.0+

layer

TypeScript
get layer(): Promise<_QuartzCore_CALayer>
Swift declaration
var layer: CALayer { get }
get · iOS 9.0+

layoutGuides

TypeScript
get layoutGuides(): Promise<Array<UILayoutGuide>>
Swift declaration
var layoutGuides: [UILayoutGuide] { get }
get · iOS 8.0+

layoutMargins

TypeScript
get layoutMargins(): Promise<{ top: number; left: number; bottom: number; right: number }>
Swift declaration
var layoutMargins: UIEdgeInsets { get set }
set · iOS 8.0+

layoutMargins

TypeScript
setLayoutMargins(value: { top: number; left: number; bottom: number; right: number }): Promise<void>
Swift declaration
var layoutMargins: UIEdgeInsets { get set }
get · iOS 9.0+

layoutMarginsGuide

TypeScript
get layoutMarginsGuide(): Promise<UILayoutGuide>
Swift declaration
var layoutMarginsGuide: UILayoutGuide { get }
get · iOS 9.0+

leadingAnchor

TypeScript
get leadingAnchor(): Promise<NSLayoutXAxisAnchor>
Swift declaration
var leadingAnchor: NSLayoutXAxisAnchor { get }
get · iOS 9.0+

leftAnchor

TypeScript
get leftAnchor(): Promise<NSLayoutXAxisAnchor>
Swift declaration
var leftAnchor: NSLayoutXAxisAnchor { get }
get · iOS 8.0+

mask

TypeScript
get mask(): Promise<(UIView) | null>
Swift declaration
var mask: UIView? { get set }
set · iOS 8.0+

mask

TypeScript
setMask(value?: (UIView) | null): Promise<void>
Swift declaration
var mask: UIView? { get set }
get · iOS 15.0+

maximumContentSizeCategory

TypeScript
get maximumContentSizeCategory(): Promise<(UIContentSizeCategory) | null>
Swift declaration
var maximumContentSizeCategory: UIContentSizeCategory? { get set }
set · iOS 15.0+

maximumContentSizeCategory

TypeScript
setMaximumContentSizeCategory(value?: (UIContentSizeCategory) | null): Promise<void>
Swift declaration
var maximumContentSizeCategory: UIContentSizeCategory? { get set }
get · iOS 15.0+

minimumContentSizeCategory

TypeScript
get minimumContentSizeCategory(): Promise<(UIContentSizeCategory) | null>
Swift declaration
var minimumContentSizeCategory: UIContentSizeCategory? { get set }
set · iOS 15.0+

minimumContentSizeCategory

TypeScript
setMinimumContentSizeCategory(value?: (UIContentSizeCategory) | null): Promise<void>
Swift declaration
var minimumContentSizeCategory: UIContentSizeCategory? { get set }
get · iOS 7.0+

motionEffects

TypeScript
get motionEffects(): Promise<Array<UIMotionEffect>>
Swift declaration
var motionEffects: [UIMotionEffect] { get set }
set · iOS 7.0+

motionEffects

TypeScript
setMotionEffects(value: Array<UIMotionEffect>): Promise<void>
Swift declaration
var motionEffects: [UIMotionEffect] { get set }
get

isMultipleTouchEnabled

TypeScript
get isMultipleTouchEnabled(): Promise<boolean>
Swift declaration
var isMultipleTouchEnabled: Bool { get set }
set

isMultipleTouchEnabled

TypeScript
setIsMultipleTouchEnabled(value: boolean): Promise<void>
Swift declaration
var isMultipleTouchEnabled: Bool { get set }
get

isOpaque

TypeScript
get isOpaque(): Promise<boolean>
Swift declaration
var isOpaque: Bool { get set }
set

isOpaque

TypeScript
setIsOpaque(value: boolean): Promise<void>
Swift declaration
var isOpaque: Bool { get set }
get · iOS 13.0+

overrideUserInterfaceStyle

TypeScript
get overrideUserInterfaceStyle(): Promise<UIUserInterfaceStyle>
Swift declaration
var overrideUserInterfaceStyle: UIUserInterfaceStyle { get set }
set · iOS 13.0+

overrideUserInterfaceStyle

TypeScript
setOverrideUserInterfaceStyle(value: UIUserInterfaceStyle): Promise<void>
Swift declaration
var overrideUserInterfaceStyle: UIUserInterfaceStyle { get set }
get · iOS 8.0+

preservesSuperviewLayoutMargins

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

preservesSuperviewLayoutMargins

TypeScript
setPreservesSuperviewLayoutMargins(value: boolean): Promise<void>
Swift declaration
var preservesSuperviewLayoutMargins: Bool { get set }
get · iOS 9.0+

readableContentGuide

TypeScript
get readableContentGuide(): Promise<UILayoutGuide>
Swift declaration
var readableContentGuide: UILayoutGuide { get }
get · iOS 6.0+

restorationIdentifier

TypeScript
get restorationIdentifier(): Promise<(string) | null>
Swift declaration
var restorationIdentifier: String? { get set }
set · iOS 6.0+

restorationIdentifier

TypeScript
setRestorationIdentifier(value?: (string) | null): Promise<void>
Swift declaration
var restorationIdentifier: String? { get set }
get · iOS 9.0+

rightAnchor

TypeScript
get rightAnchor(): Promise<NSLayoutXAxisAnchor>
Swift declaration
var rightAnchor: NSLayoutXAxisAnchor { get }
get · iOS 11.0+

safeAreaInsets

TypeScript
get safeAreaInsets(): Promise<{ top: number; left: number; bottom: number; right: number }>
Swift declaration
var safeAreaInsets: UIEdgeInsets { get }
get · iOS 11.0+

safeAreaLayoutGuide

TypeScript
get safeAreaLayoutGuide(): Promise<UILayoutGuide>
Swift declaration
var safeAreaLayoutGuide: UILayoutGuide { get }
get · iOS 13.0+

scalesLargeContentImage

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

scalesLargeContentImage

TypeScript
setScalesLargeContentImage(value: boolean): Promise<void>
Swift declaration
var scalesLargeContentImage: Bool { get set }
get · iOS 9.0+

semanticContentAttribute

TypeScript
get semanticContentAttribute(): Promise<UISemanticContentAttribute>
Swift declaration
var semanticContentAttribute: UISemanticContentAttribute { get set }
set · iOS 9.0+

semanticContentAttribute

TypeScript
setSemanticContentAttribute(value: UISemanticContentAttribute): Promise<void>
Swift declaration
var semanticContentAttribute: UISemanticContentAttribute { get set }
get · iOS 13.0+

showsLargeContentViewer

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

showsLargeContentViewer

TypeScript
setShowsLargeContentViewer(value: boolean): Promise<void>
Swift declaration
var showsLargeContentViewer: Bool { get set }
get

subviews

TypeScript
get subviews(): Promise<Array<UIView>>
Swift declaration
var subviews: [UIView] { get }
get

superview

TypeScript
get superview(): Promise<(UIView) | null>
Swift declaration
var superview: UIView? { get }
get · iOS 2.0+

tag

TypeScript
get tag(): Promise<number>
Swift declaration
var tag: Int { get set }
set · iOS 2.0+

tag

TypeScript
setTag(value: number): Promise<void>
Swift declaration
var tag: Int { get set }
get · iOS 7.0+

tintAdjustmentMode

TypeScript
get tintAdjustmentMode(): Promise<UIView_TintAdjustmentMode>
Swift declaration
var tintAdjustmentMode: UIView.TintAdjustmentMode { get set }
set · iOS 7.0+

tintAdjustmentMode

TypeScript
setTintAdjustmentMode(value: UIView_TintAdjustmentMode): Promise<void>
Swift declaration
var tintAdjustmentMode: UIView.TintAdjustmentMode { get set }
get · iOS 7.0+

tintColor

TypeScript
get tintColor(): Promise<(UIColor) | null>
Swift declaration
var tintColor: UIColor! { get set }
set · iOS 7.0+

tintColor

TypeScript
setTintColor(value?: (UIColor) | null): Promise<void>
Swift declaration
var tintColor: UIColor! { get set }
get · iOS 9.0+

topAnchor

TypeScript
get topAnchor(): Promise<NSLayoutYAxisAnchor>
Swift declaration
var topAnchor: NSLayoutYAxisAnchor { get }
get · iOS 9.0+

trailingAnchor

TypeScript
get trailingAnchor(): Promise<NSLayoutXAxisAnchor>
Swift declaration
var trailingAnchor: NSLayoutXAxisAnchor { get }
get · iOS 13.0+

transform3D

TypeScript
get transform3D(): Promise<_QuartzCore_CATransform3D>
Swift declaration
var transform3D: CATransform3D { get set }
set · iOS 13.0+

transform3D

TypeScript
setTransform3D(value: _QuartzCore_CATransform3D): Promise<void>
Swift declaration
var transform3D: CATransform3D { get set }
get

transform

TypeScript
get transform(): Promise<_CoreFoundation_CGAffineTransform>
Swift declaration
var transform: CGAffineTransform { get set }
set

transform

TypeScript
setTransform(value: _CoreFoundation_CGAffineTransform): Promise<void>
Swift declaration
var transform: CGAffineTransform { get set }
get · iOS 6.0+

translatesAutoresizingMaskIntoConstraints

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

translatesAutoresizingMaskIntoConstraints

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

isUserInteractionEnabled

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

isUserInteractionEnabled

TypeScript
setIsUserInteractionEnabled(value: boolean): Promise<void>
Swift declaration
var isUserInteractionEnabled: Bool { get set }
get · iOS 9.0+

forFirstBaselineLayout

TypeScript
get forFirstBaselineLayout(): Promise<UIView>
Swift declaration
var forFirstBaselineLayout: UIView { get }
get · iOS 9.0+

forLastBaselineLayout

TypeScript
get forLastBaselineLayout(): Promise<UIView>
Swift declaration
var forLastBaselineLayout: UIView { get }
get · iOS 9.0+

widthAnchor

TypeScript
get widthAnchor(): Promise<NSLayoutDimension>
Swift declaration
var widthAnchor: NSLayoutDimension { get }
get

window

TypeScript
get window(): Promise<(UIWindow) | null>
Swift declaration
var window: UIWindow? { get }
method · iOS 26.0+

edgeInsets

TypeScript
edgeInsets(region: UIView_LayoutRegion): Promise<{ top: number; left: number; bottom: number; right: number }>
Swift declaration
@MainActor @preconcurrency func edgeInsets(for region: UIView.LayoutRegion) -> UIEdgeInsets
method · iOS 26.0+

layoutGuide

TypeScript
layoutGuide(region: UIView_LayoutRegion): Promise<UILayoutGuide>
Swift declaration
@MainActor @preconcurrency func layoutGuide(for region: UIView.LayoutRegion) -> UILayoutGuide
get · iOS 17.0+

traitOverrides

TypeScript
get traitOverrides(): Promise<UITraitOverrides>
Swift declaration
@MainActor @preconcurrency var traitOverrides: UITraitOverrides { get set }
set · iOS 17.0+

traitOverrides

TypeScript
setTraitOverrides(value: UITraitOverrides): Promise<void>
Swift declaration
@MainActor @preconcurrency var traitOverrides: UITraitOverrides { get set }
method · iOS 27.1+

reservedRegions

TypeScript
reservedRegions(kind: UIView_ReservedRegion_Kind, options?: UIView_ReservedRegion_QueryOptions): Promise<Array<UIView_ReservedRegion>>
Swift declaration
@MainActor @preconcurrency func reservedRegions(kind: UIView.ReservedRegion.Kind, options: UIView.ReservedRegion.QueryOptions = []) -> [UIView.ReservedRegion]
get · iOS 26.0+

cornerConfiguration

TypeScript
get cornerConfiguration(): Promise<UICornerConfiguration>
Swift declaration
@MainActor @preconcurrency var cornerConfiguration: UICornerConfiguration { get set }
set · iOS 26.0+

cornerConfiguration

TypeScript
setCornerConfiguration(value: UICornerConfiguration): Promise<void>
Swift declaration
@MainActor @preconcurrency var cornerConfiguration: UICornerConfiguration { get set }
method · iOS 26.0+

directionalEdgeInsets

TypeScript
directionalEdgeInsets(region: UIView_LayoutRegion): Promise<{ top: number; leading: number; bottom: number; trailing: number }>
Swift declaration
@MainActor @preconcurrency func directionalEdgeInsets(for region: UIView.LayoutRegion) -> NSDirectionalEdgeInsets
method · iOS 17.0+

unregisterForTraitChanges

TypeScript
unregisterForTraitChanges(registration: SDKHandle): Promise<void>
Swift declaration
@MainActor func unregisterForTraitChanges(_ registration: any UITraitChangeRegistration)
static · iOS 17.0+

animate

TypeScript
static animateSpringDurationBounceInitialSpringVelocityDelayOptionsAnimationsCompletion(duration: number, bounce: number, initialSpringVelocity: number, delay: number, options: UIView_AnimationOptions, animations: (() => void), completion?: (((arg0: boolean) => void)) | null): Promise<void>
Swift declaration
@MainActor @preconcurrency class func animate(springDuration duration: TimeInterval = 0.5, bounce: CGFloat = 0.0, initialSpringVelocity: CGFloat = 0.0, delay: TimeInterval = 0.0, options: UIView.AnimationOptions = [], animations: () -> Void, completion: ((Bool) -> Void)? = nil)

Skipped declarations

5 declarations were excluded from these bindings. Each reason comes from the generator or the iOS SDK compiler.

UIView.registerForTraitChanges(_:handler:)

Passing a Swift type itself is not supported.

UIView.registerForTraitChanges(_:target:action:)

Passing a Swift type itself is not supported.

UIView.registerForTraitChanges(_:action:)

Passing a Swift type itself is not supported.

UIView.setAnimationWillStart(_:)

Objective-C selectors cannot cross the bridge.

UIView.setAnimationDidStop(_:)

Objective-C selectors cannot cross the bridge.

All UIKit types →