From a4e7082ab81eb9c5df9f9d4b385c7765123b6fa0 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sun, 28 May 2023 22:28:41 -0700 Subject: [PATCH] Fix race condition in Compose screen when loading account --- Tusker/Screens/Compose/ComposeHostingController.swift | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/Tusker/Screens/Compose/ComposeHostingController.swift b/Tusker/Screens/Compose/ComposeHostingController.swift index 8dfcf4ef..6259771d 100644 --- a/Tusker/Screens/Compose/ComposeHostingController.swift +++ b/Tusker/Screens/Compose/ComposeHostingController.swift @@ -27,6 +27,8 @@ class ComposeHostingController: UIHostingController() + private var assetPickerCompletion: (@MainActor ([PHPickerResult]) -> Void)? private var drawingCompletion: ((PKDrawing) -> Void)? @@ -44,7 +46,6 @@ class ComposeHostingController: UIHostingController