Skip to content

Commit ab3f16f

Browse files
author
Achyut Kumar M
committed
replace onTapGesture with simultaneous gesture
1 parent 223afc7 commit ab3f16f

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

GoInfoGame/GoInfoGame/quests/LongQuests/View/LongForm.swift

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -214,11 +214,11 @@ struct LongForm: View, QuestForm {
214214
}
215215
}
216216
}
217-
.onTapGesture {
218-
print("DISMISS KEYBAORD")
219-
//hide keyboard if keyboard is open
220-
UIApplication.shared.sendAction(#selector(UIResponder.resignFirstResponder), to: nil, from: nil, for: nil)
221-
}
217+
.simultaneousGesture(
218+
TapGesture().onEnded {
219+
hideKeyboard()
220+
}
221+
)
222222
}
223223
.onChange(of: capturedImage) { newValue in
224224
if newValue != nil {

0 commit comments

Comments
 (0)