MMMSpacerView

Objective-C

@interface MMMSpacerView : UIView

Swift

class MMMSpacerView : UIView

Auto Layout does not support relationships between empty spaces, so we need to use spacer views and set such constraints between them. This one is a transparent and by default hidden view which can be used as such a spacer. It has no intrinsic size and low content hugging and compression resistance priorities. Unlike UIView we have translatesAutoresizingMaskIntoConstraints set to NO already.

  • Undocumented

    Declaration

    Objective-C

    - (nonnull id)init NS_DESIGNATED_INITIALIZER;

    Swift

    init()
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (id)initWithCoder:(NSCoder *)aDecoder NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (id)initWithFrame:(CGRect)frame NS_UNAVAILABLE;