mirror of
https://github.com/Dimillian/IceCubesApp.git
synced 2025-01-28 21:39:18 +01:00
Add gesture to close the suggested tags
This commit is contained in:
parent
b3af5f1c45
commit
a3f29aa15b
@ -161,5 +161,13 @@ struct StatusEditorAutoCompleteView: View {
|
|||||||
.padding(.horizontal, .layoutPadding)
|
.padding(.horizontal, .layoutPadding)
|
||||||
}
|
}
|
||||||
.frame(height: 200)
|
.frame(height: 200)
|
||||||
|
.gesture(DragGesture(minimumDistance: 0, coordinateSpace: .local)
|
||||||
|
.onEnded({ value in
|
||||||
|
withAnimation {
|
||||||
|
if value.translation.height > 0 {
|
||||||
|
isTagSuggestionExpanded = false
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}))
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user