Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-06-11 01:08:55 +04:00
parent 12dde45917
commit ec9cb0a09f
8 changed files with 173 additions and 24 deletions

View File

@@ -895,7 +895,7 @@ public final class DrawingView: UIView, UIGestureRecognizerDelegate, UIPencilInt
self.stateUpdated(NavigationState(
canUndo: !self.undoStack.isEmpty,
canRedo: !self.redoStack.isEmpty,
canClear: !self.undoStack.isEmpty || self.hasOpaqueData || !(self.entitiesView?.entities.isEmpty ?? true),
canClear: !self.undoStack.isEmpty || self.hasOpaqueData || (self.entitiesView?.hasEntities ?? false),
canZoomOut: self.zoomScale > 1.0 + .ulpOfOne,
isDrawing: self.isDrawing
))