Fix: Transition issues

This commit is contained in:
Hariharan Mudaliar 2026-03-01 02:22:02 +05:30
commit ddda04369d
No known key found for this signature in database
GPG key ID: 025583EB0BE5640E
2 changed files with 4 additions and 6 deletions

View file

@ -774,7 +774,6 @@ struct ContentView: View {
.transition(tabSwitchTransition)
}
}
.clipped()
.zIndex(1)
.allowsHitTesting(vm.notchState == .open)
.blur(radius: abs(gestureProgress) > 0.3 ? min(abs(gestureProgress), 8) : 0)

View file

@ -107,12 +107,10 @@ struct TabSelectionView: View {
let isSelected = isSelected(tab)
let activeAccent = tab.accentColor ?? .white
TabButton(label: tab.label, icon: tab.icon, selected: isSelected) {
withAnimation(.smooth(duration: 0.3)) {
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)
@ -131,6 +129,7 @@ struct TabSelectionView: View {
}
}
}
.animation(.smooth(duration: 0.3), value: coordinator.currentView)
.clipShape(Capsule())
.onAppear {
ensureValidSelection(with: tabs)