1 parent 7ff4f9c commit 3f05d00Copy full SHA for 3f05d00
1 file changed
Photo Editor/Photo Editor/PhotoEditor+Gestures.swift
@@ -191,7 +191,18 @@ extension PhotoEditorViewController : UIGestureRecognizerDelegate {
191
if recognizer.state == .ended {
192
imageViewToPan = nil
193
lastPanPoint = nil
194
- hideToolbar(hide: false)
+ var isInTextEditMode = false
195
+ for v in self.canvasImageView.subviews {
196
+ if v.isFirstResponder && v is UITextView {
197
+ isInTextEditMode = true
198
+ break
199
+ }
200
201
+ if isInTextEditMode {
202
+ hideToolbar(hide: true)
203
+ } else {
204
+ hideToolbar(hide: false)
205
206
deleteView.isHidden = true
207
let point = recognizer.location(in: self.view)
208
0 commit comments