Merge branch 'master' of gitlab.com:peter-iakovlev/telegram-ios

This commit is contained in:
Ilya Laktyushin
2019-09-14 02:05:19 +03:00
67 changed files with 1929 additions and 2156 deletions

View File

@@ -50,7 +50,8 @@ public final class ThemePreviewController: ViewController {
super.init(navigationBarPresentationData: NavigationBarPresentationData(presentationTheme: self.previewTheme, presentationStrings: self.presentationData.strings))
self.isModalWhenInOverlay = true
self.blocksBackgroundWhenInOverlay = true
self.navigationPresentation = .modal
let themeName: String
if case let .theme(theme) = source {
@@ -333,13 +334,6 @@ public final class ThemePreviewController: ViewController {
}))
}
override public func dismiss(completion: (() -> Void)? = nil) {
self.controllerNode.animateOut(completion: { [weak self] in
self?.presentingViewController?.dismiss(animated: false, completion: nil)
completion?()
})
}
override public func containerLayoutUpdated(_ layout: ContainerViewLayout, transition: ContainedViewLayoutTransition) {
super.containerLayoutUpdated(layout, transition: transition)