mirror of
https://github.com/Swiftgram/Telegram-iOS.git
synced 2025-12-23 06:35:51 +00:00
no message
This commit is contained in:
@@ -9,13 +9,20 @@ final class AuthorizationSequenceSplashController: ViewController {
|
||||
return self.displayNode as! AuthorizationSequenceSplashControllerNode
|
||||
}
|
||||
|
||||
private let controller = RMIntroViewController()
|
||||
private let theme: AuthorizationTheme
|
||||
|
||||
private let controller: RMIntroViewController
|
||||
|
||||
var nextPressed: (() -> Void)?
|
||||
|
||||
init() {
|
||||
init(theme: AuthorizationTheme) {
|
||||
self.theme = theme
|
||||
self.controller = RMIntroViewController(backroundColor: theme.backgroundColor, primaryColor: theme.primaryColor, accentColor: theme.accentColor, regularDotColor: theme.disclosureControlColor, highlightedDotColor: theme.accentColor)
|
||||
|
||||
super.init(navigationBarTheme: nil)
|
||||
|
||||
self.statusBar.statusBarStyle = theme.statusBarStyle
|
||||
|
||||
self.controller.startMessaging = { [weak self] in
|
||||
self?.nextPressed?()
|
||||
}
|
||||
@@ -26,7 +33,7 @@ final class AuthorizationSequenceSplashController: ViewController {
|
||||
}
|
||||
|
||||
override public func loadDisplayNode() {
|
||||
self.displayNode = AuthorizationSequenceSplashControllerNode()
|
||||
self.displayNode = AuthorizationSequenceSplashControllerNode(theme: self.theme)
|
||||
self.displayNodeDidLoad()
|
||||
}
|
||||
|
||||
@@ -39,9 +46,9 @@ final class AuthorizationSequenceSplashController: ViewController {
|
||||
}
|
||||
|
||||
override func viewWillAppear(_ animated: Bool) {
|
||||
super.viewWillAppear(animated);
|
||||
controller.viewWillAppear(false)
|
||||
super.viewWillAppear(animated)
|
||||
self.addControllerIfNeeded()
|
||||
controller.viewWillAppear(false)
|
||||
}
|
||||
|
||||
override func viewDidAppear(_ animated: Bool) {
|
||||
|
||||
Reference in New Issue
Block a user