Turn on strict concurrency. Fix some issues.

This commit is contained in:
Brent Simmons
2024-03-19 19:55:55 -07:00
parent b2d3128b2d
commit 186deebf9b
7 changed files with 24 additions and 21 deletions

View File

@@ -15,7 +15,7 @@ struct ErrorHandler {
private static var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
public static func present(_ viewController: UIViewController) -> (Error) -> () {
return { [weak viewController] error in
return { @MainActor [weak viewController] error in
if UIApplication.shared.applicationState == .active {
viewController?.presentError(error)
} else {