Remove double navigation controllers from compose screen
This commit is contained in:
parent
2febb37a8e
commit
e0eba95b48
|
@ -61,10 +61,9 @@ class ComposeSceneDelegate: UIResponder, UIWindowSceneDelegate, TuskerSceneDeleg
|
||||||
|
|
||||||
let composeVC = ComposeHostingController(draft: draft, mastodonController: controller)
|
let composeVC = ComposeHostingController(draft: draft, mastodonController: controller)
|
||||||
composeVC.delegate = self
|
composeVC.delegate = self
|
||||||
let nav = EnhancedNavigationViewController(rootViewController: composeVC)
|
|
||||||
|
|
||||||
window = UIWindow(windowScene: windowScene)
|
window = UIWindow(windowScene: windowScene)
|
||||||
window!.rootViewController = nav
|
window!.rootViewController = composeVC
|
||||||
window!.makeKeyAndVisible()
|
window!.makeKeyAndVisible()
|
||||||
|
|
||||||
updateTitle(draft: composeVC.controller.draft)
|
updateTitle(draft: composeVC.controller.draft)
|
||||||
|
|
|
@ -103,21 +103,8 @@ extension TuskerNavigationDelegate {
|
||||||
presentDuckable(compose, animated: animated, isDucked: isDucked) {
|
presentDuckable(compose, animated: animated, isDucked: isDucked) {
|
||||||
return
|
return
|
||||||
} else {
|
} else {
|
||||||
let nav = UINavigationController(rootViewController: compose)
|
present(compose, animated: animated)
|
||||||
// TODO: is this still necessary?
|
|
||||||
// nav.presentationController?.delegate = compose
|
|
||||||
present(nav, animated: animated)
|
|
||||||
}
|
}
|
||||||
// let compose = ComposeHostingController(draft: draft, mastodonController: apiController)
|
|
||||||
// if #available(iOS 16.0, *),
|
|
||||||
// presentDuckable(compose, animated: animated, isDucked: isDucked) {
|
|
||||||
// return
|
|
||||||
// } else {
|
|
||||||
// let compose = ComposeHostingController(draft: draft, mastodonController: apiController)
|
|
||||||
// let nav = UINavigationController(rootViewController: compose)
|
|
||||||
// nav.presentationController?.delegate = compose
|
|
||||||
// present(nav, animated: animated)
|
|
||||||
// }
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue