Final Fixes: Flip Animation - wrap for the day

This commit is contained in:
Hariharan Mudaliar 2025-10-17 23:43:33 +05:30
commit 12f51615ae
7 changed files with 42 additions and 19 deletions

View file

@ -544,6 +544,7 @@ struct ContentView: View {
.clipped()
.clipShape(RoundedRectangle(cornerRadius: MusicPlayerImageSizes.cornerRadiusInset.closed))
.matchedGeometryEffect(id: "albumArt", in: albumArtNamespace)
.albumArtFlip(angle: musicManager.flipAngle)
.frame(width: max(0, vm.effectiveClosedNotchHeight - 12), height: max(0, vm.effectiveClosedNotchHeight - 12))
}
.frame(width: max(0, vm.effectiveClosedNotchHeight - (isHovering ? 0 : 12) + gestureProgress / 2), height: max(0, vm.effectiveClosedNotchHeight - (isHovering ? 0 : 12)))