Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit9233e6e

Browse files
authored
Merge pull request#17 from teufelaudio/fixHomeGestureCollision
Fix home gesture collision
2 parentsb924a83 +6f0bc6b commit9233e6e

File tree

2 files changed

+5
-1
lines changed

2 files changed

+5
-1
lines changed

‎CHANGELOG.md‎

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ BottomSheet adheres to [Semantic Versioning](http://semver.org/).
77

88
###Changed
99

10+
Fix half-opened bottom sheet when returning from background.
11+
1012
- 1.0.6
1113

1214
Removing List padding on examples.

‎Sources/BottomSheet/BottomSheet.swift‎

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -91,7 +91,9 @@ public struct BottomSheet<Content: View>: View {
9191
.gesture(
9292
DragGesture()
9393
.onChanged({(value)in
94-
94+
// ignore gestures while the sheet is hidden. Otherwise it could collide with the iOS-global "go to homescreen"-gesture
95+
guard isPresentedelse{return}
96+
9597
letoffsetY= value.translation.height
9698
self.draggedOffset= offsetY
9799

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp