TabBarItemBadgeView
@MainActor
open class TabBarItemBadgeView : UIView
FWTabBarItemBadgeView 这个类定义了item中使用的badge视图样式,默认为FWTabBarItemBadgeView类对象。 你可以设置FWTabBarItemContentView的badgeView属性为自定义的FWTabBarItemBadgeView子类,这样就可以轻松实现 自定义通知样式了。
-
默认颜色
Declaration
Swift
@MainActor public static var defaultBadgeColor: UIColor
-
Badge color
Declaration
Swift
@MainActor open var badgeColor: UIColor? { get set }
-
Badge value, supprot nil, “”, “1”, “someText”. Hidden when nil. Show Little dot style when “”.
Declaration
Swift
@MainActor open var badgeValue: String? { get set }
-
Image view
Declaration
Swift
@MainActor open var imageView: UIImageView
-
显示badgeValue的Label
Declaration
Swift
@MainActor open var badgeLabel: UILabel
-
Initializer
Declaration
Swift
@MainActor override public init(frame: CGRect)
-
Undocumented
Declaration
Swift
@MainActor public required init?(coder aDecoder: NSCoder)
-
Undocumented
Declaration
Swift
@MainActor override open func layoutSubviews()
-
Undocumented
Declaration
Swift
@MainActor override open func sizeThatFits(_ size: CGSize) -> CGSize