One Logo Pool Ball
UIKit · IOS API REFERENCE

UITabBarItem

class · iOS 2.0+ · SDK 27.1

@MainActor class UITabBarItem

Members (19)

method · iOS 10.0+

badgeTextAttributes

TypeScript
badgeTextAttributes(state: UIControl_State): Promise<(NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null>
Swift declaration
func badgeTextAttributes(for state: UIControl.State) -> [NSAttributedString.Key : Any]?
init · iOS 2.0+

init

TypeScript
static init(): Promise<UITabBarItem>
Swift declaration
init()
init · iOS 2.0+

init

TypeScript
static initCoder(coder: _Foundation_NSCoder): Promise<(UITabBarItem) | null>
Swift declaration
init?(coder: NSCoder)
init · iOS 2.0+

init

TypeScript
static initTabBarSystemItemTag(systemItem: UITabBarItem_SystemItem, tag: number): Promise<UITabBarItem>
Swift declaration
convenience init(tabBarSystemItem systemItem: UITabBarItem.SystemItem, tag: Int)
init · iOS 7.0+

init

TypeScript
static initTitleImageSelectedImage(title?: (string) | null, image?: (UIImage) | null, selectedImage?: (UIImage) | null): Promise<UITabBarItem>
Swift declaration
convenience init(title: String?, image: UIImage?, selectedImage: UIImage?)
init · iOS 2.0+

init

TypeScript
static initTitleImageTag(title: (string) | null, image: (UIImage) | null, tag: number): Promise<UITabBarItem>
Swift declaration
convenience init(title: String?, image: UIImage?, tag: Int)
method · iOS 10.0+

setBadgeTextAttributes

TypeScript
setBadgeTextAttributes(textAttributes: (NativeMap<_Foundation_NSAttributedString_Key, unknown>) | null, state: UIControl_State): Promise<void>
Swift declaration
func setBadgeTextAttributes(_ textAttributes: [NSAttributedString.Key : Any]?, for state: UIControl.State)
get · iOS 10.0+

badgeColor

TypeScript
get badgeColor(): Promise<(UIColor) | null>
Swift declaration
@NSCopying var badgeColor: UIColor? { get set }
set · iOS 10.0+

badgeColor

TypeScript
setBadgeColor(value?: (UIColor) | null): Promise<void>
Swift declaration
@NSCopying var badgeColor: UIColor? { get set }
get · iOS 2.0+

badgeValue

TypeScript
get badgeValue(): Promise<(string) | null>
Swift declaration
var badgeValue: String? { get set }
set · iOS 2.0+

badgeValue

TypeScript
setBadgeValue(value?: (string) | null): Promise<void>
Swift declaration
var badgeValue: String? { get set }
get · iOS 15.0+

scrollEdgeAppearance

TypeScript
get scrollEdgeAppearance(): Promise<(UITabBarAppearance) | null>
Swift declaration
@NSCopying var scrollEdgeAppearance: UITabBarAppearance? { get set }
set · iOS 15.0+

scrollEdgeAppearance

TypeScript
setScrollEdgeAppearance(value?: (UITabBarAppearance) | null): Promise<void>
Swift declaration
@NSCopying var scrollEdgeAppearance: UITabBarAppearance? { get set }
get · iOS 7.0+

selectedImage

TypeScript
get selectedImage(): Promise<(UIImage) | null>
Swift declaration
var selectedImage: UIImage? { get set }
set · iOS 7.0+

selectedImage

TypeScript
setSelectedImage(value?: (UIImage) | null): Promise<void>
Swift declaration
var selectedImage: UIImage? { get set }
get · iOS 13.0+

standardAppearance

TypeScript
get standardAppearance(): Promise<(UITabBarAppearance) | null>
Swift declaration
@NSCopying var standardAppearance: UITabBarAppearance? { get set }
set · iOS 13.0+

standardAppearance

TypeScript
setStandardAppearance(value?: (UITabBarAppearance) | null): Promise<void>
Swift declaration
@NSCopying var standardAppearance: UITabBarAppearance? { get set }
get · iOS 5.0+

titlePositionAdjustment

TypeScript
get titlePositionAdjustment(): Promise<UIOffset>
Swift declaration
var titlePositionAdjustment: UIOffset { get set }
set · iOS 5.0+

titlePositionAdjustment

TypeScript
setTitlePositionAdjustment(value: UIOffset): Promise<void>
Swift declaration
var titlePositionAdjustment: UIOffset { get set }

Skipped declarations

No declarations were skipped in this snapshot.

All UIKit types →