mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-10-09 11:23:48 +00:00
Camera and editor improvements
This commit is contained in:
parent
f42de6eba9
commit
4970445702
@ -141,7 +141,7 @@ public final class CameraButton: Component {
|
||||
}
|
||||
}
|
||||
let contentSize = self.contentView.update(
|
||||
transition: transition,
|
||||
transition: .immediate,
|
||||
component: component.content.component,
|
||||
environment: {},
|
||||
containerSize: availableSize
|
||||
@ -158,7 +158,7 @@ public final class CameraButton: Component {
|
||||
self.updateScale(transition: transition)
|
||||
self.isEnabled = component.isEnabled
|
||||
|
||||
transition.setFrame(view: self.contentView, frame: CGRect(origin: CGPoint(x: floor((size.width - contentSize.width) / 2.0), y: floor((size.height - contentSize.height) / 2.0)), size: contentSize), completion: nil)
|
||||
self.contentView.frame = CGRect(origin: CGPoint(x: floor((size.width - contentSize.width) / 2.0), y: floor((size.height - contentSize.height) / 2.0)), size: contentSize)
|
||||
|
||||
return size
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user