mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 14:45:21 +00:00
Camera and editor improvements
This commit is contained in:
@@ -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()
|
||||
|
||||
Reference in New Issue
Block a user