diff --git a/Sources/FancyScrollView/AppleMusicStyleScrollView.swift b/Sources/FancyScrollView/AppleMusicStyleScrollView.swift index fa89bba..e2cb80d 100644 --- a/Sources/FancyScrollView/AppleMusicStyleScrollView.swift +++ b/Sources/FancyScrollView/AppleMusicStyleScrollView.swift @@ -11,8 +11,9 @@ struct AppleMusicStyleScrollView: View { ScrollView { ZStack { GeometryReader { geometry -> Text in + let offset = geometry.frame(in: .global).minY DispatchQueue.main.async { - self.offset = geometry.frame(in: .global).minY + self.offset = offset } return Text("") }