mirror of
https://github.com/FBukovina/Atoll.git
synced 2026-10-27 15:14:33 +00:00
Add transition animation play/pause button in minimalistic view
This commit is contained in:
parent
e6074c4fa3
commit
cc6577d4bc
2 changed files with 3 additions and 7 deletions
|
|
@ -629,7 +629,7 @@ private struct MinimalisticReminderDetailsView: View {
|
|||
pressEffect: .none,
|
||||
symbolEffectStyle: .replace,
|
||||
action: {
|
||||
Task { await musicManager.togglePlay() }
|
||||
musicManager.togglePlay()
|
||||
}
|
||||
)
|
||||
}
|
||||
|
|
@ -909,9 +909,7 @@ private struct MinimalisticSquircircleButton: View {
|
|||
image
|
||||
case .replace:
|
||||
if #available(macOS 14.0, *) {
|
||||
image
|
||||
.contentTransition(.symbolEffect(.replace))
|
||||
.id(icon)
|
||||
image.contentTransition(.symbolEffect(.replace))
|
||||
} else {
|
||||
image
|
||||
}
|
||||
|
|
@ -926,7 +924,6 @@ private struct MinimalisticSquircircleButton: View {
|
|||
image
|
||||
.contentTransition(.symbolEffect(.replace))
|
||||
.symbolEffect(.bounce, value: icon)
|
||||
.id(icon)
|
||||
} else {
|
||||
image
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue