Finally fixed: Stats two row

This commit is contained in:
Hariharan Mudaliar 2026-03-01 01:51:49 +05:30
commit 7578ccae60
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
2 changed files with 7 additions and 6 deletions

View file

@ -110,12 +110,10 @@ struct TabSelectionView: View {
let isSelected = isSelected(tab)
let activeAccent = tab.accentColor ?? .white
TabButton(label: tab.label, icon: tab.icon, selected: isSelected) {
withAnimation(.smooth) {
if tab.view == .extensionExperience {
coordinator.selectedExtensionExperienceID = tab.experienceID
}
coordinator.currentView = tab.view
if tab.view == .extensionExperience {
coordinator.selectedExtensionExperienceID = tab.experienceID
}
coordinator.currentView = tab.view
}
.frame(height: 26)
.foregroundStyle(isSelected ? activeAccent : .gray)
@ -134,6 +132,7 @@ struct TabSelectionView: View {
}
}
}
.animation(.smooth, value: coordinator.currentView)
.clipShape(Capsule())
}