Base button class for control bar items.
Supports normal and selected states, notification badges, and theming through appearance configuration.
Parameter Type Required Default Description imageRtkImage✅ - The icon image for the button titleString❌ ""The title text displayed below the icon appearanceRtkControlBarButtonAppearance❌ - Appearance configuration for colors and styling
Property Type Required Default Description selectedStateTintColorUIColor❌ - Tint color applied when the button is in the selected state normalStateTintColorUIColor❌ - Tint color applied when the button is in the normal state notificationBadgeRtkNotificationBadgeView- - Badge view for displaying notification counts
Method Return Type Description setSelected(image:title:)VoidSets the button to the selected state with a custom image and title setDefault(image:title:)VoidSets the button to the default state with a custom image and title
let button = RtkControlBarButton (
image : RtkImage ( image : UIImage ( systemName : "mic" )) ,
let button = RtkControlBarButton (
image : RtkImage ( image : UIImage ( systemName : "mic" )) ,
// Switch to selected state
image : RtkImage ( image : UIImage ( systemName : "mic.slash" )) ,
// Switch back to default state
image : RtkImage ( image : UIImage ( systemName : "mic" )) ,