TabBarItemBadgeView

@objc(FWTabBarItemBadgeView)
@objcMembers
open class TabBarItemBadgeView : UIView

FWTabBarItemBadgeView 这个类定义了item中使用的badge视图样式,默认为FWTabBarItemBadgeView类对象。 你可以设置FWTabBarItemContentView的badgeView属性为自定义的FWTabBarItemBadgeView子类,这样就可以轻松实现 自定义通知样式了。

  • 默认颜色

    Declaration

    Swift

    public static var defaultBadgeColor: UIColor
  • Badge color

    Declaration

    Swift

    open var badgeColor: UIColor? { get set }
  • Badge value, supprot nil, “”, “1”, “someText”. Hidden when nil. Show Little dot style when “”.

    Declaration

    Swift

    open var badgeValue: String? { get set }
  • Image view

    Declaration

    Swift

    open var imageView: UIImageView
  • 显示badgeValue的Label

    Declaration

    Swift

    open var badgeLabel: UILabel
  • Initializer

    Declaration

    Swift

    public override init(frame: CGRect)
  • Undocumented

    Declaration

    Swift

    public required init?(coder aDecoder: NSCoder)
  • Undocumented

    Declaration

    Swift

    open override func layoutSubviews()
  • Undocumented

    Declaration

    Swift

    open override func sizeThatFits(_ size: CGSize) -> CGSize