Skip to content

Commit

Permalink
Update AppleMusicStyleScrollView.swift
Browse files Browse the repository at this point in the history
  • Loading branch information
nerdsupremacist authored Apr 1, 2020
1 parent 9f0d491 commit d9c594d
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion Sources/FancyScrollView/AppleMusicStyleScrollView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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("")
}
Expand Down

0 comments on commit d9c594d

Please sign in to comment.