Fix some concurrency warnings.

This commit is contained in:
Brent Simmons 2024-05-03 23:10:57 -07:00
parent 83298770c2
commit 1e80253018
4 changed files with 4 additions and 4 deletions

View File

@ -24,7 +24,7 @@ public final class WidgetDataEncoder {
private lazy var containerURL = FileManager.default.containerURL(forSecurityApplicationGroupIdentifier: appGroup)
private lazy var dataURL = containerURL?.appendingPathComponent("widget-data.json")
static let shared = WidgetDataEncoder()
@MainActor static let shared = WidgetDataEncoder()
private init () {}
func encodeWidgetData() throws {

View File

@ -15,7 +15,7 @@ protocol AddFeedFolderViewControllerDelegate {
@MainActor func didSelect(container: Container)
}
class AddFeedFolderViewController: UITableViewController {
final class AddFeedFolderViewController: UITableViewController {
var delegate: AddFeedFolderViewControllerDelegate?
var addFeedType = AddFeedType.web

View File

@ -17,7 +17,7 @@ enum AddFeedType {
case web
}
class AddFeedViewController: UITableViewController {
final class AddFeedViewController: UITableViewController {
@IBOutlet weak var activityIndicator: UIActivityIndicatorView!
@IBOutlet weak var addButton: UIBarButtonItem!

View File

@ -37,7 +37,7 @@ class AppDelegate: UIResponder, UIApplicationDelegate, UNUserNotificationCenterD
}
}
var log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
nonisolated(unsafe) let log = OSLog(subsystem: Bundle.main.bundleIdentifier!, category: "Application")
var userNotificationManager: UserNotificationManager!
var faviconDownloader: FaviconDownloader!