UI improvements

This commit is contained in:
Ilya Laktyushin
2023-03-20 15:24:40 +04:00
parent 7269255d00
commit c02f796791
12 changed files with 163 additions and 73 deletions

View File

@@ -1344,6 +1344,12 @@ public final class SparseItemGrid: ASDisplayNode {
self.pinchRecognizer?.isEnabled = self.pinchEnabled
}
}
public var isScrollEnabled: Bool = true {
didSet {
self.currentViewport?.scrollView.isScrollEnabled = self.isScrollEnabled
}
}
public init(theme: PresentationTheme, initialZoomLevel: ZoomLevel? = nil) {
self.theme = theme