mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-22 22:25:57 +00:00
Various Improvements
This commit is contained in:
@@ -1,5 +1,10 @@
|
||||
import Foundation
|
||||
import UIKit
|
||||
import AsyncDisplayKit
|
||||
|
||||
public protocol ActionSheetGroupOverlayNode: ASDisplayNode {
|
||||
func updateLayout(size: CGSize, transition: ContainedViewLayoutTransition)
|
||||
}
|
||||
|
||||
open class ActionSheetController: ViewController, PresentableController, StandalonePresentableController {
|
||||
private var actionSheetNode: ActionSheetControllerNode {
|
||||
@@ -83,4 +88,10 @@ open class ActionSheetController: ViewController, PresentableController, Standal
|
||||
self.actionSheetNode.updateItem(groupIndex: groupIndex, itemIndex: itemIndex, f)
|
||||
}
|
||||
}
|
||||
|
||||
public func setItemGroupOverlayNode(groupIndex: Int, node: ActionSheetGroupOverlayNode) {
|
||||
if self.isViewLoaded {
|
||||
self.actionSheetNode.setItemGroupOverlayNode(groupIndex: groupIndex, node: node)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user