diff --git a/boringNotch/components/Notch/NotchHomeView.swift b/boringNotch/components/Notch/NotchHomeView.swift index 0c29b8a4..757572d3 100644 --- a/boringNotch/components/Notch/NotchHomeView.swift +++ b/boringNotch/components/Notch/NotchHomeView.swift @@ -3,7 +3,7 @@ // boringNotch // // Created by Hugo Persson on 2024-08-18. -// Modified by Harsh Vardhan Goswami & Richard Kunkli & Mustafa Ramadan +// Modified by Harsh Vardhan Goswami & Richard Kunkli & Mustafa Ramadan & Dimitris Chatzigeorgiou // import Combine @@ -173,17 +173,17 @@ struct MusicControlsView: View { let v = scalar.value return v >= 0x0600 && v <= 0x06FF } - MarqueeText( - .constant(line), - font: .subheadline, - nsFont: .subheadline, - textColor: musicManager.isFetchingLyrics ? .gray.opacity(0.7) : .gray, - frameWidth: width - ) - .font(isPersian ? .custom("Vazirmatn-Regular", size: NSFont.preferredFont(forTextStyle: .subheadline).pointSize) : .subheadline) - .lineLimit(1) - .opacity(musicManager.isPlaying ? 1 : 0) - .transition(.opacity.combined(with: .move(edge: .top))) + + Text(line) + .font(isPersian ? .custom("Vazirmatn-Regular", size: NSFont.preferredFont(forTextStyle: .subheadline).pointSize) : .subheadline) + .lineLimit(1) + .opacity(musicManager.isPlaying ? 1 : 0) + .transition(.asymmetric( + insertion: .opacity.combined(with: .move(edge: .bottom)), + removal: .opacity.combined(with: .move(edge: .top)) + )) + .id(line) + .animation(.easeInOut(duration: 0.5), value: line) } } }