mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 22:55:00 +00:00
Camera and editor improvements
This commit is contained in:
@@ -621,7 +621,7 @@ private func generateKnobImage() -> UIImage? {
|
||||
return image?.stretchableImage(withLeftCapWidth: Int(margin + side * 0.5), topCapHeight: Int(margin + side * 0.5))
|
||||
}
|
||||
|
||||
final class TextSizeSliderComponent: Component {
|
||||
public final class TextSizeSliderComponent: Component {
|
||||
let value: CGFloat
|
||||
let tag: AnyObject?
|
||||
let updated: (CGFloat) -> Void
|
||||
@@ -646,7 +646,7 @@ final class TextSizeSliderComponent: Component {
|
||||
return true
|
||||
}
|
||||
|
||||
final class View: UIView, UIGestureRecognizerDelegate, ComponentTaggedView {
|
||||
public final class View: UIView, UIGestureRecognizerDelegate, ComponentTaggedView {
|
||||
private var validSize: CGSize?
|
||||
|
||||
private let backgroundNode = NavigationBackgroundNode(color: UIColor(rgb: 0x888888, alpha: 0.3))
|
||||
@@ -739,7 +739,7 @@ final class TextSizeSliderComponent: Component {
|
||||
}
|
||||
}
|
||||
|
||||
func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
|
||||
public func gestureRecognizer(_ gestureRecognizer: UIGestureRecognizer, shouldRecognizeSimultaneouslyWith otherGestureRecognizer: UIGestureRecognizer) -> Bool {
|
||||
return true
|
||||
}
|
||||
|
||||
@@ -787,11 +787,11 @@ final class TextSizeSliderComponent: Component {
|
||||
}
|
||||
}
|
||||
|
||||
func makeView() -> View {
|
||||
public func makeView() -> View {
|
||||
return View()
|
||||
}
|
||||
|
||||
func update(view: View, availableSize: CGSize, state: EmptyComponentState, environment: Environment<Empty>, transition: Transition) -> CGSize {
|
||||
public func update(view: View, availableSize: CGSize, state: EmptyComponentState, environment: Environment<Empty>, transition: Transition) -> CGSize {
|
||||
view.updated = self.updated
|
||||
view.released = self.released
|
||||
return view.updateLayout(size: availableSize, component: self, transition: transition)
|
||||
|
||||
Reference in New Issue
Block a user