<!--
{
  "availability" : [
    "iOS: 18.0.0 -",
    "iPadOS: 18.0.0 -",
    "macCatalyst: 18.0.0 -",
    "macOS: 15.0.0 -",
    "tvOS: 18.0.0 -",
    "visionOS: 2.0.0 -",
    "watchOS: 11.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Tab/init(_:systemImage:role:content:)",
  "metadataVersion" : "0.1.0",
  "role" : "Initializer",
  "symbol" : {
    "kind" : "Initializer",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI3TabVAAs5NeverORszAA4ViewR_AaFR0_rlE_11systemImage4role7contentACyAEq_AA07DefaultC5LabelVGAA18LocalizedStringKeyV_SSAA0C4RoleVSgq_yXEtcAKRs0_rlufc::OverloadGroup"
  },
  "title" : "init(_:systemImage:role:content:)"
}
-->

# init(_:systemImage:role:content:)

Creates a new tab that you can use in a tab view using a system image
for the tab item’s image, and a localized string key label.

```
init(_ titleKey: LocalizedStringKey, systemImage: String, role: TabRole?, @ContentBuilder content: () -> Content) where Label == DefaultTabLabel
```

## Parameters

`titleKey`

The localized string key label for the tab’s tab item.

`systemImage`

The image for the tab’s tab item.

`role`

The role defining the semantic purpose of the tab.

`content`

The view content of the tab.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)