Extend swipe and pull gestures to full screen
Moved pullGesture and pageSwitchGesture from the ring ZStack to the outermost ZStack via simultaneousGesture. Both gestures now fire from anywhere on the screen without blocking scroll. Co-Authored-By: Kutesir <kutesir@provoc.ug> Co-Authored-By: Sentry <sentry@provoc.ug>
This commit is contained in:
@@ -85,6 +85,8 @@ struct BackupView: View {
|
||||
.padding(.top, 4)
|
||||
.padding(.trailing, AppTheme.hPad - 4)
|
||||
}
|
||||
.simultaneousGesture(pullGesture)
|
||||
.simultaneousGesture(pageSwitchGesture)
|
||||
.navigationTitle("")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
.toolbar(.hidden, for: .navigationBar)
|
||||
@@ -674,8 +676,6 @@ struct BackupView: View {
|
||||
|
||||
ringHero
|
||||
}
|
||||
.gesture(pullGesture)
|
||||
.simultaneousGesture(pageSwitchGesture)
|
||||
.padding(.bottom, 4)
|
||||
|
||||
if ringPage == 0 {
|
||||
|
||||
Reference in New Issue
Block a user