RoundedCornerView

@MainActor
open class RoundedCornerView : UIView

半圆圆角View,无需frame快捷设置半圆圆角、边框等

  • 是否是半圆圆角,默认true

    Declaration

    Swift

    @MainActor
    open var isRoundedCorner: Bool { get set }
  • 自定义圆角半径,优先级高,默认nil不生效

    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(borderColor: UIColor?, borderWidth: 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()