Type Aliases

The following type aliases are available globally.

  • Type alias for UIVIew and NSView to make supporting both easier

    Declaration

    Swift

    public typealias View = UIView
  • Type alias for UIVIew and NSView to make supporting both easier

  • Type alias for [NSLayoutConstraint] in case Apple makes constraints not cross-platform like they have with other parts of the auto-layout API

    Declaration

    Swift

    public typealias ConstraintCollection = [NSLayoutConstraint]
  • Type alias for UILayoutPriority and NSLayoutPriority to make supporting both iOS and Mac OS easier

    Declaration

    Swift

    public typealias LayoutPriority = UILayoutPriority
  • Type alias for UILayoutPriority and NSLayoutPriority to make supporting both iOS and Mac OS easier