Refine tab mini player layout
This commit is contained in:
1 parent
f6f370d5ca
commit
80812e8fc1
5 files changed
+135
-31
No files matched your search
@@ -204,6 +204,13 @@ struct AlbumDetailView: View {
|
||||
.refreshable {
|
||||
await viewModel.load(forceRefresh: true)
|
||||
}
|
||||
.onScrollGeometryChange(for: CGFloat.self) { geometry in
|
||||
geometry.contentOffset.y
|
||||
} action: { previousOffset, currentOffset in
|
||||
if currentOffset > previousOffset + 2 {
|
||||
player.compactMiniPlayerForDownwardScroll()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
private func albumHeader(_ album: Album) -> some View {
|
||||
|
||||
Reference in new issue
Block a user