mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2024-11-26 10:11:00 +00:00
Add gesture to close the suggested tags
This commit is contained in:
parent
b3af5f1c45
commit
a3f29aa15b
1 changed files with 8 additions and 0 deletions
|
@ -161,5 +161,13 @@ struct StatusEditorAutoCompleteView: View {
|
|||
.padding(.horizontal, .layoutPadding)
|
||||
}
|
||||
.frame(height: 200)
|
||||
.gesture(DragGesture(minimumDistance: 0, coordinateSpace: .local)
|
||||
.onEnded({ value in
|
||||
withAnimation {
|
||||
if value.translation.height > 0 {
|
||||
isTagSuggestionExpanded = false
|
||||
}
|
||||
}
|
||||
}))
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue