I need to add a background colour like under:

I attempted to realize it by including a ZStack, however was not profitable and getting a view like this:

TabView(choice: $coordinator.selectedTab) {
// Chat Tab
NavigationStack(path: coordinator.pathBinding(for: .chat)) {
coordinator.buildRootView(tab: .chat)
.toolbarVisibility(.hidden, for: .navigationBar)
}
.tag(Tab.chat)
.tabItem {
Label{
Textual content("Chat")
} icon: {
ZStack {
if coordinator.selectedTab == .chat {
RoundedRectangle(cornerRadius: 8)
.fill(tokens.componentColors.Utility.Model.utilityBrand100)
.body(width: 32, top: 32)
}
Picture("Vector")
.renderingMode(.template)
}
}
}
}

