mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
Camera and editor improvements
This commit is contained in:
@@ -178,6 +178,11 @@ public final class DrawingEntitiesView: UIView, TGPhotoDrawingEntitiesView {
|
||||
return entities
|
||||
}
|
||||
|
||||
public var hasEntities: Bool {
|
||||
let entities = self.entities.filter { !($0 is DrawingMediaEntity) }
|
||||
return !entities.isEmpty
|
||||
}
|
||||
|
||||
private var initialEntitiesData: Data?
|
||||
public func setup(withEntitiesData entitiesData: Data?) {
|
||||
self.clear()
|
||||
|
||||
Reference in New Issue
Block a user