IOSHelper | API - NativeScript

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

getFrameFromPosition

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

getParentWithViewController

getParentWithViewController(view: View): View

Returns a view with viewController or undefined if no such found along the view's parent chain.

getPositionFromFrame

getPositionFromFrame(frame: any): {
  bottom: any
  left: any
  right: any
}

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

layoutView

layoutView(controller: any, owner: View): void

shrinkToSafeArea

shrinkToSafeArea(view: View, frame: any): any

updateAutoAdjustScrollInsets

updateAutoAdjustScrollInsets(controller: any, owner: View): void

updateConstraints

updateConstraints(controller: any, owner: View): void

Previous
Http

Next
Length