From b478f6e982cefd53695321384a084d1ff4fb3505 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Thu, 13 Jun 2019 14:54:55 -0700 Subject: [PATCH] Fix interactive dismissal for reply screen --- Tusker/TuskerNavigationDelegate.swift | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) diff --git a/Tusker/TuskerNavigationDelegate.swift b/Tusker/TuskerNavigationDelegate.swift index 0d9a41eaa5..01e7d1a067 100644 --- a/Tusker/TuskerNavigationDelegate.swift +++ b/Tusker/TuskerNavigationDelegate.swift @@ -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) }