TabBar
@MainActor
open class TabBar : UITabBar
FWTabBar是高度自定义的UITabBar子类,通过添加UIControl的方式实现自定义tabBarItem的效果。目前支持tabBar的大部分属性的设置,例如delegate,items,selectedImge,itemPositioning,itemWidth,itemSpacing等,以后会更加细致的优化tabBar原有属性的设置效果。
-
tabBar中items布局偏移量
Declaration
Swift
@MainActor public var itemEdgeInsets: UIEdgeInsets
-
是否设置为自定义布局方式,默认为空。如果为空,则通过itemPositioning属性来设置。如果不为空则忽略itemPositioning,所以当tabBar的itemCustomPositioning属性不为空时,如果想改变布局规则,请设置此属性而非itemPositioning。
Declaration
Swift
@MainActor public var itemCustomPositioning: TabBarItemPositioning? { get set }
-
自定义'More'按钮样式,继承自FWTabBarItemContentView
Declaration
Swift
@MainActor open var moreContentView: TabBarItemContentView? { get set }
-
Undocumented
Declaration
Swift
@MainActor override open var items: [UITabBarItem]? { get set }
-
Undocumented
Declaration
Swift
@MainActor open var isEditing: Bool { get set }
-
Undocumented
Declaration
Swift
@MainActor override open func setItems(_ items: [UITabBarItem]?, animated: Bool)
-
Undocumented
Declaration
Swift
@MainActor override open func beginCustomizingItems(_ items: [UITabBarItem])
-
Undocumented
Declaration
Swift
@MainActor override open func endCustomizing(animated: Bool) -> Bool
-
Undocumented
Declaration
Swift
@MainActor override open func layoutSubviews()
-
Undocumented
Declaration
Swift
@MainActor override open func point(inside point: CGPoint, with event: UIEvent?) -> Bool