From 3aa45cb3654b5fc2d0d12e4d91bf685eed8a6cc4 Mon Sep 17 00:00:00 2001 From: Shadowfacts Date: Sat, 28 Oct 2023 13:56:25 -0500 Subject: [PATCH] Maybe fix crash due to reading ScaledMetric on background thread ScaledMetric.wrappedValue calls into Font.scaleFactor(textStyle:in:) which uses a dictionary setter --- Tusker/Views/AccountDisplayNameView.swift | 1 + 1 file changed, 1 insertion(+) diff --git a/Tusker/Views/AccountDisplayNameView.swift b/Tusker/Views/AccountDisplayNameView.swift index 0365171c..22e3effd 100644 --- a/Tusker/Views/AccountDisplayNameView.swift +++ b/Tusker/Views/AccountDisplayNameView.swift @@ -38,6 +38,7 @@ struct AccountDisplayNameView: View { let matches = emojiRegex.matches(in: account.displayName, options: [], range: fullRange) guard !matches.isEmpty else { return } + let emojiSize = self.emojiSize let emojiImages = MultiThreadDictionary() let group = DispatchGroup()