Fix interactive dismissal for reply screen

This commit is contained in:
Shadowfacts 2019-06-13 14:54:55 -07:00
parent d3aa2eff5a
commit b478f6e982
Signed by untrusted user: shadowfacts
GPG Key ID: 83FB3304046BADA4
1 changed files with 6 additions and 2 deletions

View File

@ -82,12 +82,16 @@ extension TuskerNavigationDelegate where Self: UIViewController {
}
func compose() {
let vc: UINavigationController = UINavigationController(rootViewController: ComposeViewController())
let compose = ComposeViewController()
let vc = UINavigationController(rootViewController: compose)
vc.presentationController?.delegate = compose
present(vc, animated: true)
}
func reply(to statusID: String) {
let vc = UINavigationController(rootViewController: ComposeViewController(inReplyTo: statusID))
let compose = ComposeViewController(inReplyTo: statusID)
let vc = UINavigationController(rootViewController: compose)
vc.presentationController?.delegate = compose
present(vc, animated: true)
}