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
|
|
@ -430,14 +430,13 @@ struct LockScreenMusicPanel: View {
|
|||
|
||||
private var playPauseButton: some View {
|
||||
let frameSize: CGFloat = isExpanded ? 80 : 54
|
||||
let symbolSize: CGFloat = isExpanded ? 34 : 26
|
||||
let iconName = musicManager.isPlaying ? "pause.fill" : "play.fill"
|
||||
|
||||
return HoverButton(
|
||||
icon: iconName,
|
||||
iconColor: .white,
|
||||
scale: .large,
|
||||
pressEffect: .none
|
||||
pressEffect: nil
|
||||
) {
|
||||
registerInteraction()
|
||||
musicManager.togglePlay()
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue