TabBarItemPositioning
public enum TabBarItemPositioning : Int, Sendable
对原生的UITabBarItemPositioning进行扩展,通过UITabBarItemPositioning设置时,系统会自动添加insets,这使得添加背景样式的需求变得不可能实现。TabBarItemPositioning完全支持原有的item Position 类型,除此之外还支持完全fill模式。
- automatic: UITabBarItemPositioning.automatic
- fill: UITabBarItemPositioning.fill
- centered: UITabBarItemPositioning.centered
- fillExcludeSeparator: 完全fill模式,布局不覆盖tabBar顶部分割线
- fillIncludeSeparator: 完全fill模式,布局覆盖tabBar顶部分割线
-
Undocumented
Declaration
Swift
case automatic
-
Undocumented
Declaration
Swift
case fill
-
Undocumented
Declaration
Swift
case centered
-
Undocumented
Declaration
Swift
case fillExcludeSeparator
-
Undocumented
Declaration
Swift
case fillIncludeSeparator