1

This is weird, I have a tab bar with 4 defined tabs and the last item is duplicating itself.

TabView {
    HomeView()
        .tabItem {
            Label("Home", systemImage: "chart.bar.fill")
        }
    GroupsView()
        .tabItem {
            Label("Groups", systemImage: "person.3.fill")
        }
    FriendsView()
        .tabItem {
            Label("Friends", systemImage: "person.crop.circle.fill.badge.plus")
        }
    ProfileView()
        .tabItem {
            Label("Profile", systemImage: "person.crop.circle")
        }
}

Result:

result

Happens on both simulator and physical device. Also only seems to be the profile tab, if I move another tab to the end the profile tab duplicates itself but in the middle. Would the view have anything to do with it?

HangarRash
  • 7,314
  • 5
  • 5
  • 32

1 Answers1

1

Put all the Views inside FriendsView inside of another View such as a Group or VStack.

If you look carefully each tab has a different part of the friends view you have to put them together.

lorem ipsum
  • 21,175
  • 5
  • 24
  • 48