Hide OverlayStatusController implementation

This commit is contained in:
Peter
2019-10-29 00:12:41 +04:00
parent 2744880667
commit d1e57a24bb
11 changed files with 31 additions and 15 deletions

View File

@@ -133,7 +133,7 @@ public enum OverlayStatusControllerStyle {
case dark
}
public final class OverlayStatusController: ViewController, StandalonePresentableController {
private final class OverlayStatusControllerImpl: ViewController, StandalonePresentableController {
private let style: OverlayStatusControllerStyle
private let type: OverlayStatusControllerType
@@ -152,7 +152,7 @@ public final class OverlayStatusController: ViewController, StandalonePresentabl
self.statusBar.statusBarStyle = .Ignore
}
required init(coder aDecoder: NSCoder) {
required public init(coder aDecoder: NSCoder) {
fatalError("init(coder:) has not been implemented")
}
@@ -183,3 +183,7 @@ public final class OverlayStatusController: ViewController, StandalonePresentabl
self.controllerNode.dismiss()
}
}
public func OverlayStatusController(style: OverlayStatusControllerStyle, type: OverlayStatusControllerType) -> ViewController {
return OverlayStatusControllerImpl(style: style, type: type)
}