Skip to content

Commit 30ea4cd

Browse files
committed
Fix karaoke view animations
1 parent 46dd841 commit 30ea4cd

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

LyricFever/Views/KaraokeView/KaraokeView.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,7 +62,8 @@ struct KaraokeView: View {
6262
if viewmodel.translationExists {
6363
if viewmodel.userDefaultStorage.karaokeShowMultilingual, originalAndTranslationAreDifferent(for: currentlyPlayingLyricsIndex) {
6464
multilingualView(currentlyPlayingLyricsIndex)
65-
.compositingGroup()
65+
// .id(currentlyPlayingLyricsIndex)
66+
// .compositingGroup()
6667
}
6768
else {
6869
Text(verbatim: viewmodel.translatedLyric[currentlyPlayingLyricsIndex])
@@ -84,6 +85,7 @@ struct KaraokeView: View {
8485
@ViewBuilder
8586
var finalKaraokeView: some View {
8687
lyricsView()
88+
.id(viewmodel.currentlyPlayingLyricsIndex)
8789
.lineLimit(2)
8890
.foregroundStyle(.white)
8991
.minimumScaleFactor(0.9)
@@ -95,7 +97,7 @@ struct KaraokeView: View {
9597
.transition(.opacity)
9698
.opacity(karaokeTransparency/100)
9799
}
98-
.drawingGroup()
100+
// .drawingGroup()
99101
.background(
100102
VisualEffectView().ignoresSafeArea()
101103
)

0 commit comments

Comments
 (0)