8.7 released—WinterCG Compliance Part 1
Learn more
Various iOS view helper methods

Summary

Variables

traitCollectionColorAppearanceChangedEvent

traitCollectionColorAppearanceChangedEvent: string
String value used when hooking to traitCollectionColorAppearanceChangedEvent event.

Functions

expandBeyondSafeArea

expandBeyondSafeArea(view: View, frame: any): any
Parameter Default Description
view

frame
any

Returns any

getFrameFromPosition

getFrameFromPosition(
  position: {
    bottom: any
    left: any
    right: any
  },
  insets?: {
    bottom: any
    left: any
    right: any
  }
): any
Parameter Default Description
position
{ bottom: any left: any right: any }

insets
{ bottom: any left: any right: any }

Returns any

getParentWithViewController

getParentWithViewController(view: View): View
Returns a view with viewController or undefined if no such found along the view's parent chain.
Parameter Default Description
view

The view form which to start the search.

Returns View

getPositionFromFrame

getPositionFromFrame(frame: any): {
  bottom: any
  left: any
  right: any
}
Parameter Default Description
frame
any

Returns { bottom: any left: any right: any }

layoutView

layoutView(controller: any, owner: View): void
Parameter Default Description
controller
any

owner

Returns void

shrinkToSafeArea

shrinkToSafeArea(view: View, frame: any): any
Parameter Default Description
view

frame
any

Returns any

updateAutoAdjustScrollInsets

updateAutoAdjustScrollInsets(controller: any, owner: View): void
Parameter Default Description
controller
any

owner

Returns void

updateConstraints

updateConstraints(controller: any, owner: View): void
Parameter Default Description
controller
any

owner

Returns void
Previous
Http
Next
Length