RectCornerView
@MainActor
open class RectCornerView : UIView
不规则圆角View,无需frame快捷设置不规则圆角、边框等
-
自定义圆角位置,默认allCorners
Declaration
Swift
@MainActor open var rectCorner: UIRectCorner { get set }
-
自定义圆角半径,默认0
Declaration
Swift
@MainActor open var cornerRadius: CGFloat { get set }
-
自定义边框颜色,默认nil不生效
Declaration
Swift
@MainActor open var borderColor: UIColor? { get set }
-
自定义边框宽度,默认0
Declaration
Swift
@MainActor open var borderWidth: CGFloat { get set }
-
自定义layoutSubviews句柄,默认nil
Declaration
Swift
@MainActor open var layoutSubviewsBlock: ((UIView) -> Void)? { get set }
-
快捷初始化不规则圆角
Declaration
Swift
@MainActor public convenience init(rectCorner: UIRectCorner, cornerRadius: CGFloat)
-
Undocumented
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
Undocumented
Declaration
Swift
@MainActor public required init?(coder: NSCoder)
-
Undocumented
Declaration
Swift
@MainActor override open func layoutSubviews()