TabsBuilder
- Kind: Class
- Namespace: SkeleKit
Methods
Accessory
Shows a view of the given type in the tab bar's accessory slot.
The view's IsVisible controls the slot. iOS 26 and later.
| Type parameter | Summary |
|---|---|
View TView | The view type to host. |
Returns
TabsBuilder: The builder instance for chaining calls.
Bubble
Puts a destination page in the separated bubble on iOS 26, with a regular tab fallback on earlier versions.
| Parameter | Summary |
|---|---|
string title | The title, shown in the sidebar and read by VoiceOver. |
ImageSource icon | The local icon shown in the bubble. |
| Type parameter | Summary |
|---|---|
ContentView TView | The type of the content view to host in the bubble. |
Returns
TabsBuilder: The builder instance for chaining calls.
Bubble
Puts an action button in the separated bubble instead of search, with a regular tab-shaped action on earlier versions.
The bubble is single: Search and Bubble exclude each other.
| Parameter | Summary |
|---|---|
string title | The title, shown in the sidebar and read by VoiceOver. |
ImageSource icon | The local icon shown in the bubble. |
Action tapped | Runs on tap. |
Returns
TabsBuilder: The builder instance for chaining calls.
Bubble
Puts an action button in the separated bubble, firing a command from a ViewModel resolved from the services.
| Parameter | Summary |
|---|---|
string title | The title, shown in the sidebar and read by VoiceOver. |
ImageSource icon | The local icon shown in the bubble. |
Func<TViewModel, ICommand> command | Picks the command off the ViewModel. |
(optional) object? commandParameter | The parameter passed to the command. |
| Type parameter | Summary |
|---|---|
(class) TViewModel | The ViewModel type carrying the command. |
Returns
TabsBuilder: The builder instance for chaining calls.
Group
Adds a group of related destinations to the tab hierarchy.
| Parameter | Summary |
|---|---|
string title | The group's title. |
ImageSource icon | The local icon shown for the group. |
Action<GroupBuilder> children | Declares the destinations inside the group. |
(optional) TabPlacement placement | How the group participates in the tab bar and sidebar. |
Returns
TabsBuilder: The builder instance for chaining calls.
Search
Adds the system search destination. It is a regular tab on iOS 18 and uses the separated search presentation on iOS 26.
| Parameter | Summary |
|---|---|
(optional) bool bubble | Whether to put the search tab in the system bubble. |
| Type parameter | Summary |
|---|---|
ContentView TView | The type of the content view to host in the tab. |
Returns
TabsBuilder: The builder instance for chaining calls.
Sidebar
Enables the adaptive sidebar and configures its presentation.
Compact environments keep the tab bar. When a sidebar is available, UIKit switches to it without rebuilding the tabs.
| Parameter | Summary |
|---|---|
(optional) Action<SidebarBuilder>? configure | Optionally configures the sidebar layout. |
Returns
TabsBuilder: The builder instance for chaining calls.
Split
Adds a native split view as a tab destination.
| Parameter | Summary |
|---|---|
string title | The text displayed on the tab bar item. |
ImageSource icon | The local icon shown on the tab. |
Action<SplitViewBuilder> configure | Declares the split view's columns and native configuration. |
(optional) TabPlacement placement | How the destination takes part in tab and sidebar customization. |
Returns
TabsBuilder: The builder instance for chaining calls.
Tab
Adds a tab page to the navigation structure.
| Parameter | Summary |
|---|---|
string title | The text displayed on the tab bar item. |
ImageSource icon | The local icon shown on the tab. |
(optional) TabPlacement placement | How the destination participates in the tab bar and sidebar. |
| Type parameter | Summary |
|---|---|
ContentView TView | The type of the content view to host in the tab. |
Returns
TabsBuilder: The builder instance for chaining calls.