resetTabOrder
TypeScriptresetTabOrder(): voidSwift declarationmutating func resetTabOrder()Resets the order of the tabs in the section back to the default.
struct · iOS 18.4+ · SDK 27.1
struct SectionCustomizationThe customizations a user has made to a ``TabSection``.
resetTabOrder(): voidSwift declarationmutating func resetTabOrder()Resets the order of the tabs in the section back to the default.
get tabOrder(): (Array<string>) | nullSwift declarationvar 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.
No declarations were skipped in this snapshot.