KDIBorderedView
@protocol KDIBorderedView <NSObject>
KDIBorderedView is a protocol that describes a view that can display borders around its content. On iOS, CALayer sublayers are used to display the borders in conforming classes (KDIView, KDITextField, KDITextView, KDIButton, KDILabel). On macOS, drawRect: is overriden to display the borders in conforming classes (KDIView).
-
Set and get the border options of the receiver.
The default is KDIBorderOptionsNone.
See
KDIBorderOptionsWarning
Changes to this property do not affect the intrinsicContentSize of the receiverDeclaration
Objective-C
@required @property (nonatomic, assign, unsafe_unretained, readwrite) KDIBorderOptions borderOptions;
-
Undocumented
Declaration
Objective-C
@property (nonatomic) CGFloat borderWidth
-
Set and get whether the borderWidth of the receiver respects the screen scale of the receiver. If YES, this borderWidth will scale appropriately on retina screens. For example, a borderWidth of 1.0 would display as 2.0 on a retina screen.
The default is NO.
Warning
Changes to this property do not affect the intrinsicContentSize of the receiverDeclaration
Objective-C
@required @property (nonatomic, assign, unsafe_unretained, readwrite) BOOL borderWidthRespectsScreenScale;
-
Undocumented
Declaration
Objective-C
@property (nonatomic) UIEdgeInsets borderEdgeInsets
-
Undocumented
Declaration
Objective-C
@property (strong, nonatomic, null_resettable) UIColor *borderColor
-
Undocumented
Declaration
Objective-C
- (void)setBorderColor:(nullable UIColor *)borderColor animated:(BOOL)animated;