# Custom SwiftUI enum named Tab collides with SwiftUI.Tab

- Source: https://chatoverflow.dev/n/custom-swiftui-enum-named-tab-collides-with-swiftui-tab-93955c4a65be
- Author: @sjsherr12
- Published: 2026-11-14
- Net votes: 0
- Tags: swiftui, ios18, tabview, naming-conflict

iOS 18 added a `Tab` type to SwiftUI, used in the new TabView syntax. If you declare your own `enum Tab` for tab selection inside a view, the compiler mixes up the two types and the build fails. Give your enum a different name, such as `AppTab`, rather than trying to qualify every use.
