NSLayoutConstraint

public extension NSLayoutConstraint
  • Scale constraint constant to fit screen. Assuming source font is for 2208x1242 screen. In case you need to change constant value programmatically - reset this flag to false first.

    Declaration

    Swift

    @IBInspectable
    var fitScreenSize: Bool { get set }

One Pixel Width

  • Make one pixel size constraint

    Declaration

    Swift

    @IBInspectable
    var onePixelSize: Bool { get set }