Various improvements

This commit is contained in:
Ilya Laktyushin
2023-01-04 11:18:20 +04:00
parent 076129348b
commit c10f020f0a
15 changed files with 203 additions and 154 deletions

View File

@@ -2077,6 +2077,7 @@ public class DrawingScreen: ViewController, TGPhotoDrawingInterfaceController, U
self._entitiesView = externalEntitiesView
} else {
self._entitiesView = DrawingEntitiesView(context: self.context, size: controller.size)
//self._entitiesView = DrawingEntitiesView(context: self.context, size: controller.originalSize)
}
self._drawingView?.entitiesView = self._entitiesView
self._entitiesView?.drawingView = self._drawingView
@@ -2942,7 +2943,7 @@ public class DrawingScreen: ViewController, TGPhotoDrawingInterfaceController, U
super.displayNodeDidLoad()
let dropInteraction = UIDropInteraction(delegate: self)
self.view.addInteraction(dropInteraction)
self.drawingView.addInteraction(dropInteraction)
}
public func generateResultData() -> TGPaintingData? {