[iOS] Create public space #143

- Update after design review
This commit is contained in:
Gil Eluard
2021-12-01 23:56:59 +01:00
parent 1217be55ab
commit 4890ce2108
109 changed files with 1122 additions and 529 deletions
@@ -26,6 +26,7 @@ class VectorHostingController: UIHostingController<AnyView> {
// MARK: Private
var isNavigationBarHidden: Bool = false
var hidesBackTitleWhenPushed: Bool = false
private var theme: Theme
@@ -49,12 +50,24 @@ class VectorHostingController: UIHostingController<AnyView> {
self.update(theme: self.theme)
}
override func viewWillAppear(_ animated: Bool) {
super.viewWillAppear(animated)
if isNavigationBarHidden {
self.navigationController?.isNavigationBarHidden = true
}
}
override func viewDidAppear(_ animated: Bool) {
super.viewDidAppear(animated)
if hidesBackTitleWhenPushed {
vc_removeBackTitle()
}
if navigationController?.isNavigationBarHidden ?? false {
navigationController?.interactivePopGestureRecognizer?.delegate = nil
}
}
override func viewDidLayoutSubviews() {