Make instant view classes public for browser ui integration

This commit is contained in:
Ilya Laktyushin
2023-03-17 23:56:15 +04:00
parent ae3c81cccd
commit 6a3f3cf8c1
21 changed files with 203 additions and 203 deletions

View File

@@ -6,7 +6,7 @@ import Postbox
import Display
import TelegramPresentationData
protocol InstantPageScrollableItem: AnyObject, InstantPageItem {
public protocol InstantPageScrollableItem: AnyObject, InstantPageItem {
var contentSize: CGSize { get }
var horizontalInset: CGFloat { get }
var isRTL: Bool { get }
@@ -23,8 +23,8 @@ private final class InstantPageScrollableContentNodeParameters: NSObject {
}
}
final class InstantPageScrollableContentNode: ASDisplayNode {
let item: InstantPageScrollableItem
public final class InstantPageScrollableContentNode: ASDisplayNode {
public let item: InstantPageScrollableItem
init(item: InstantPageScrollableItem, additionalNodes: [InstantPageNode]) {
self.item = item
@@ -38,7 +38,7 @@ final class InstantPageScrollableContentNode: ASDisplayNode {
}
}
override func drawParameters(forAsyncLayer layer: _ASDisplayLayer) -> NSObjectProtocol? {
public override func drawParameters(forAsyncLayer layer: _ASDisplayLayer) -> NSObjectProtocol? {
return InstantPageScrollableContentNodeParameters(item: self.item)
}