mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 14:20:20 +00:00
Make instant view classes public for browser ui integration
This commit is contained in:
@@ -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)
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user