scroll sticked
This commit is contained in:
@@ -286,7 +286,7 @@ struct StoreDetailView: View {
|
||||
}
|
||||
}
|
||||
.padding(.horizontal, 16)
|
||||
.padding(.vertical, 10)
|
||||
.padding(.bottom, 10)
|
||||
.padding(.top, isSticky ? categoryTabsPinnedInset(safeTop: safeTop) : 10)
|
||||
}
|
||||
.background(AppColors.backgroundLight)
|
||||
@@ -301,7 +301,7 @@ struct StoreDetailView: View {
|
||||
}
|
||||
|
||||
private func categoryTabsPinnedInset(safeTop: CGFloat) -> CGFloat {
|
||||
max(20, safeTop + 8)
|
||||
max(8, safeTop - 44)
|
||||
}
|
||||
|
||||
private func debugNumber(_ value: CGFloat) -> String {
|
||||
|
||||
Reference in New Issue
Block a user