Various Improvements

This commit is contained in:
Ilya Laktyushin
2021-02-10 00:38:38 +04:00
parent 249b684e64
commit b9e68236d0
37 changed files with 5333 additions and 4729 deletions

View File

@@ -20,8 +20,11 @@ open class ActionSheetController: ViewController, PresentableController, Standal
public var dismissed: ((Bool) -> Void)?
public init(theme: ActionSheetControllerTheme) {
private var allowInputInset: Bool
public init(theme: ActionSheetControllerTheme, allowInputInset: Bool = false) {
self.theme = theme
self.allowInputInset = allowInputInset
super.init(navigationBarPresentationData: nil)
@@ -41,7 +44,7 @@ open class ActionSheetController: ViewController, PresentableController, Standal
}
open override func loadDisplayNode() {
self.displayNode = ActionSheetControllerNode(theme: self.theme)
self.displayNode = ActionSheetControllerNode(theme: self.theme, allowInputInset: self.allowInputInset)
self.displayNodeDidLoad()
self.actionSheetNode.dismiss = { [weak self] cancelled in