8.6 Released with 🥽 visionOS support and more!
Check it out

Summary ​

Variables ​

MajorVersion ​

MajorVersion: number

Functions ​

animateWithSpring ​

animateWithSpring(options?: {
  animateOptions?: UIViewAnimationOptions
  animations?: () => void
  completion?: (finished?: boolean) => void
  delay?: number
  friction?: number
  mass?: number
  tension?: number
}): void
Parameter Default Description
options
{ animateOptions?: UIViewAnimationOptions animations?: () => void completion?: (finished?: boolean) => void delay?: number friction?: number mass?: number tension?: number }

Returns void

applyRotateTransform ​

applyRotateTransform(
  transform: CATransform3D,
  x: number,
  y: number,
  z: number
): CATransform3D
Parameter Default Description
transform
CATransform3D

x
number

y
number

z
number

Returns CATransform3D

copyLayerProperties ​

copyLayerProperties(
  view: UIView,
  toView: UIView,
  customProperties?: {
    layer?: (string | number | symbol)[]
  }
): void
Parameter Default Description
view
UIView

toView
UIView

customProperties
{ layer?: (string | number | symbol)[] }

Returns void

createUIDocumentInteractionControllerDelegate ​

createUIDocumentInteractionControllerDelegate(): NSObject
Returns NSObject

getCurrentAppPath ​

getCurrentAppPath(): string

getRootViewController ​

getRootViewController(): UIViewController
Returns UIViewController

getShadowLayer ​

getShadowLayer(nativeView: UIView, name?: string, create?: boolean): CALayer
Parameter Default Description
nativeView
UIView

name
string

create
boolean

Returns CALayer

getVisibleViewController ​

getVisibleViewController(
  rootViewController: UIViewController
): UIViewController
Parameter Default Description
rootViewController
UIViewController

Returns UIViewController

getWindow ​

getWindow(): UIWindow
Returns UIWindow

getter ​

getter<T>(_this: any, property: T | () => T): T
Parameter Default Description
_this
any

property
T | () => T

Returns T

isLandscape ​

isLandscape(): boolean
Returns boolean

isRealDevice ​

isRealDevice(): boolean
Returns boolean

joinPaths ​

joinPaths(...paths: string[]): string
Parameter Default Description
paths
string[]

Returns string

openFile ​

openFile(filePath: string): boolean
Parameter Default Description
filePath
string

Returns boolean

printCGRect ​

printCGRect(rect: CGRect): string
Parameter Default Description
rect
CGRect

Returns string

setWindowBackgroundColor ​

setWindowBackgroundColor(value: string): void
Parameter Default Description
value
string

Returns void

snapshotView ​

snapshotView(view: UIView, scale: number): UIImage
Parameter Default Description
view
UIView

scale
number

Returns UIImage