Camera and editor improvements

This commit is contained in:
Ilya Laktyushin
2023-06-10 00:50:25 +04:00
parent 8335936796
commit 155b8786a1
39 changed files with 879 additions and 339 deletions

View File

@@ -496,6 +496,15 @@ public final class DrawingEntitiesView: UIView, TGPhotoDrawingEntitiesView {
return nil
}
public func getView(where f: (DrawingEntityView) -> Bool) -> DrawingEntityView? {
for case let view as DrawingEntityView in self.subviews {
if f(view) {
return view
}
}
return nil
}
public func play() {
for case let view as DrawingEntityView in self.subviews {
view.play()