RBContainerView Class Reference

Inherits from UIView
Declared in RBContainerView.h

Overview

Contains a child view, providing margin and sizing functionality.

  child

The child view.

@property (nonatomic, nonnull) UIView *child

Declared In

RBContainerView.h

  margin

The margin to apply around the child view.

@property (nonatomic) UIEdgeInsets margin

Declared In

RBContainerView.h

  mode

The mode in which to layout the child view. Default = RBContainerViewModeFit.

@property (nonatomic) RBContainerViewMode mode

Declared In

RBContainerView.h

  minimumSize

The minimum size that the container view will request. Default = CGSizeEmpty.

@property (nonatomic) CGSize minimumSize

Declared In

RBContainerView.h

  maximumSize

The maximum size that the container view will request. Default = CGSizeMax.

@property (nonatomic) CGSize maximumSize

Declared In

RBContainerView.h

  enforceAspectRatio

Whether or not the given aspect ratio should be enforced in sizing.

@property (nonatomic) BOOL enforceAspectRatio

Declared In

RBContainerView.h

  aspectRatio

The desired aspect ratio.

@property (nonatomic) CGFloat aspectRatio

Declared In

RBContainerView.h

– initWithChild:

Initializes a new container view object.

- (nonnull instancetype)initWithChild:(nonnull UIView *)childView

Parameters

childView

The child view.

Return Value

The initialized object.

Declared In

RBContainerView.h