mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-28 15:44:32 +00:00
small parallax effect on album artwork
This commit is contained in:
parent
44c053a761
commit
9d708069d8
5 changed files with 75 additions and 0 deletions
|
|
@ -882,6 +882,7 @@ struct MinimalisticAlbumArtView: View {
|
|||
.clipShape(RoundedRectangle(cornerRadius: 12))
|
||||
.matchedGeometryEffect(id: "albumArt", in: albumArtNamespace)
|
||||
.albumArtFlip(angle: musicManager.flipAngle)
|
||||
.parallax3D(magnitude: 12)
|
||||
}
|
||||
.buttonStyle(PlainButtonStyle())
|
||||
.opacity(musicManager.isPlaying ? 1 : 0.4)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue