UIView(Customization) Category Reference
Declared in | UIView+Customization.h |
---|
pillCorners
Whether or not the view should manage corners and corner radius so that a pill effect is obtained.
Please note with this set to YES
the ‘cornerRadius’ and ‘corners’ will no longer take affect until it is set back to NO
.
@property (nonatomic) BOOL pillCorners
Discussion
Whether or not the view should manage corners and corner radius so that a pill effect is obtained.
Please note with this set to YES
the ‘cornerRadius’ and ‘corners’ will no longer take affect until it is set back to NO
.
Declared In
UIView+Customization.h
cornerRadius
The radius of the view’s corners. The higher, the more rounded the corners will be. Essentially sets self.layer.cornerRadius.
@property (nonatomic) CGFloat cornerRadius
Discussion
The radius of the view’s corners. The higher, the more rounded the corners will be. Essentially sets self.layer.cornerRadius.
Declared In
UIView+Customization.h
corners
Use this to affect the corner radius of specific corners. Default = UIRectCornerAllCorners. Please note if specific corners are set (i.e. not UIRectCornerAllCorners) the property self.layer.mask is co-opted and used to manage the corners. The mask is added, removed and managed by Redbeard. Note this may therefore affect other layers you may have added. If specific rounded corners are set and a borderWidth > 0 is set please see note on borderEdges property.
@property (nonatomic) UIRectCorner corners
Discussion
Use this to affect the corner radius of specific corners. Default = UIRectCornerAllCorners. Please note if specific corners are set (i.e. not UIRectCornerAllCorners) the property self.layer.mask is co-opted and used to manage the corners. The mask is added, removed and managed by Redbeard. Note this may therefore affect other layers you may have added. If specific rounded corners are set and a borderWidth > 0 is set please see note on borderEdges property.
Declared In
UIView+Customization.h
borderEdges
Use this to specify the edges that a border should be applied to. Default = UIRectEdgeAll. Please note if specific edges are set (i.e. not UIRectEdgeAll) the property self.layer will have a managed sublayer with zPosition = 999 that is used to manage the edges. The sublayer is added, removed and managed by Redbeard. The sublayer may be triggered if specific rounded corners (i.e. not UIRectCornerAllCorners) are set. Note this may therefore affect other layers you may have added.
@property (nonatomic) UIRectEdge borderEdges
Discussion
Use this to specify the edges that a border should be applied to. Default = UIRectEdgeAll. Please note if specific edges are set (i.e. not UIRectEdgeAll) the property self.layer will have a managed sublayer with zPosition = 999 that is used to manage the edges. The sublayer is added, removed and managed by Redbeard. The sublayer may be triggered if specific rounded corners (i.e. not UIRectCornerAllCorners) are set. Note this may therefore affect other layers you may have added.
Declared In
UIView+Customization.h
borderWidth
The width of the border around the view’s edge. Essentially sets self.layer.borderWidth.
@property (nonatomic) CGFloat borderWidth
Discussion
The width of the border around the view’s edge. Essentially sets self.layer.borderWidth.
Declared In
UIView+Customization.h
borderColor
The color of the border around the view’s edge. Essentially sets self.layer.borderColor.
@property (nonatomic, nullable) UIColor *borderColor
Discussion
The color of the border around the view’s edge. Essentially sets self.layer.borderColor.
Declared In
UIView+Customization.h
layerShadowOffset
The shadow offset. This wraps self.layer.shadowOffset to allow ease of theming.
@property (nonatomic) CGSize layerShadowOffset
Discussion
The shadow offset. This wraps self.layer.shadowOffset to allow ease of theming.
Declared In
UIView+Customization.h
layerShadowRadius
The shadow radius. This wraps self.layer.shadowRadius to allow ease of theming.
@property (nonatomic) CGFloat layerShadowRadius
Discussion
The shadow radius. This wraps self.layer.shadowRadius to allow ease of theming.
Declared In
UIView+Customization.h
layerShadowOpacity
The shadow opacity. This wraps self.layer.shadowOpacity to allow ease of theming.
@property (nonatomic) CGFloat layerShadowOpacity
Discussion
The shadow opacity. This wraps self.layer.shadowOpacity to allow ease of theming.
Declared In
UIView+Customization.h
layerShadowColor
The shadow color. This wraps self.layer.shadowColor to allow ease of theming.
@property (nonatomic, nullable) UIColor *layerShadowColor
Discussion
The shadow color. This wraps self.layer.shadowColor to allow ease of theming.
Declared In
UIView+Customization.h
disableManagedCustomizations
Set this to YES
if you would like to disable Redbeards view customizations, currently this means the following properties
cornerRadius, corners, borderWidth, borderEdges, borderColor, pillCorners.
This is useful if these properites which are managed by Redbeard intefere with your own customizations and layers.
Default = NO
.
@property (nonatomic) BOOL disableManagedCustomizations
Discussion
Set this to YES
if you would like to disable Redbeards view customizations, currently this means the following properties
cornerRadius, corners, borderWidth, borderEdges, borderColor, pillCorners.
This is useful if these properites which are managed by Redbeard intefere with your own customizations and layers.
Default = NO
.
Declared In
UIView+Customization.h
– applyManagedCustomizations
Causes the forced application of any managed customizations if customizations have not been
disabled via disableManagedCustomizations
.
Useful if you need to refresh managed customization properties such as ‘corners’, ‘borderEdges’ etc.
For performance reasons, managed customizations are applied when a change in the property occurs.
e.g setting corners = UIRectCornerTopLeft twice, will not cause the view to be updated twice but only the once.
- (void)applyManagedCustomizations
Discussion
Causes the forced application of any managed customizations if customizations have not been
disabled via disableManagedCustomizations
.
Useful if you need to refresh managed customization properties such as ‘corners’, ‘borderEdges’ etc.
For performance reasons, managed customizations are applied when a change in the property occurs.
e.g setting corners = UIRectCornerTopLeft twice, will not cause the view to be updated twice but only the once.
Declared In
UIView+Customization.h