feat: Resolving concurrency warnings

This commit is contained in:
2024-06-11 10:54:19 -04:00
parent bf2e65fb8f
commit 0e593708bb
6 changed files with 39 additions and 46 deletions

View File

@@ -23,7 +23,9 @@ public struct FlaggedMessageLabel: View {
}
private struct FlaggedMessageLabelStyleKey: EnvironmentKey {
static let defaultValue = AnyTextLabelStyle(style: .font(.caption))
static let defaultValue = MainActor.assumeIsolated {
AnyTextLabelStyle(style: .font(.caption))
}
}
extension EnvironmentValues {