One Logo Pool Ball
SwiftUI · IOS API REFERENCE

TabViewCustomization.SectionCustomization

struct · iOS 18.4+ · SDK 27.1

struct SectionCustomization

The customizations a user has made to a ``TabSection``.

Members (2)

method · iOS 18.4+

resetTabOrder

TypeScript
resetTabOrder(): void
Swift declaration
mutating func resetTabOrder()

Resets the order of the tabs in the section back to the default.

get · iOS 18.4+

tabOrder

TypeScript
get tabOrder(): (Array<string>) | null
Swift declaration
var tabOrder: [String]? { get }

The order customization for the tabs in a section, identified by customization identifier. Identifiers can be associated with a `Tab` or `TabSection` using the `customizationID(_:)` modifier. TabSection("Categories") { Tab("Climate", systemImage: "fan") { ClimateView() } .customizationID("com.myApp.climate") Tab("Lights", systemImage: "lightbulb") { LightsView() } .customizationID("com.myApp.lights") } .customizationID("com.myApp.categories") Section tab order can be read by subscripting the customization with the tab section's id: let order = customization[section: "com.myApp.categories"].tabOrder If the section has been customized, this returns the current order for all the tabs in the section, including tabs that have not been customized. If the section has not been customized or the identifier does not correspond to a section, the order will be nil to indicate the tab order matches that of the builder.

Skipped declarations

No declarations were skipped in this snapshot.

All SwiftUI types →