@interface MDCShapedView : UIView
MDCShapedView is a primitive view class which makes it easy to style the shape of the view’s edges and corners.
MDCShapedView manages mapping the paths generated by the shapeGenerator to the backing CAShapeLayer whenever the view is resized.
The elevation of the layer in points.
The higher the elevation, the more spread out the shadow is. This is distinct from the layer’s zPosition which can be used to order overlapping layers, but will have no affect on the size of the shadow.
Negative values act as if zero were specified.
@property (nonatomic, assign, unsafe_unretained, readwrite) MDCShadowElevation elevation;
The shape generator used to generate a new CGPath whenever the view is resized.
@property (nonatomic, strong, readwrite, nullable) id<MDCShapeGenerating> shapeGenerator;
Initializes an MDCShapedView.
- (nonnull instancetype)initWithFrame:(CGRect)frame shapeGenerator: (nullable id<MDCShapeGenerating>)shapeGenerator;
The frame of the shaped view.
The shape generator used to set the shape of the view.