MBMEdgeInsets


@interface MBMEdgeInsets : NSObject

The distance on each side between rectangles, when one is contained into other.

All fields’ values are in platform pixel units.

  • Unavailable

    Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)init NS_UNAVAILABLE;
  • Unavailable

    Undocumented

    Declaration

    Objective-C

    + (nonnull instancetype)new NS_UNAVAILABLE;
  • Undocumented

    Declaration

    Objective-C

    - (nonnull instancetype)initWithTop:(double)top
                                   left:(double)left
                                 bottom:(double)bottom
                                  right:(double)right;

    Swift

    init(top: Double, left: Double, bottom: Double, right: Double)
  • top

    Padding from the top.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double top;

    Swift

    var top: Double { get }
  • Padding from the left.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double left;

    Swift

    var left: Double { get }
  • Padding from the bottom.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double bottom;

    Swift

    var bottom: Double { get }
  • Padding from the right.

    Declaration

    Objective-C

    @property (nonatomic, readonly) double right;

    Swift

    var right: Double { get }
  • Undocumented

    Declaration

    Objective-C

    - (BOOL)isEqualToEdgeInsets:(nonnull MBMEdgeInsets *)other;

    Swift

    func isEqual(to other: EdgeInsets) -> Bool