Skip to content

Commit 99ad3df

Browse files
committed
Merge branch '313-area-below-app-drawers-is-not-hittable' into 'master'
Resolve "Area below app drawers is not hittable" Closes #313 See merge request pace/mobile/ios/pace-cloud-sdk!354
2 parents 56f5615 + 348d8cc commit 99ad3df

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

PACECloudSDK/AppKit/Drawer/AppDrawerContainer.swift

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -126,4 +126,14 @@ public extension AppKit.AppDrawerContainer {
126126
$0.forceCloseApp()
127127
}
128128
}
129+
130+
override func hitTest(_ point: CGPoint, with event: UIEvent?) -> UIView? {
131+
var hitDrawer: Bool = false
132+
drawerStackView.subviews.forEach { drawer in
133+
guard !hitDrawer else { return }
134+
hitDrawer = drawer.frame.contains(point)
135+
}
136+
137+
return hitDrawer ? super.hitTest(point, with: event) : nil
138+
}
129139
}

0 commit comments

Comments
 (0)