diff --git a/Sources/FeedbackKit/FeedbackStore.swift b/Sources/FeedbackKit/FeedbackStore.swift index ae9b06e..7a0f425 100644 --- a/Sources/FeedbackKit/FeedbackStore.swift +++ b/Sources/FeedbackKit/FeedbackStore.swift @@ -3,6 +3,7 @@ import Cache import Foundation extension Application { + @MainActor fileprivate var storedFeedback: FileState<[UUID: Feedback]> { fileState(initial: [:], filename: "storedFeedback") } diff --git a/Sources/FeedbackKit/FeedbackViewModel.swift b/Sources/FeedbackKit/FeedbackViewModel.swift index cde2eeb..13fd248 100644 --- a/Sources/FeedbackKit/FeedbackViewModel.swift +++ b/Sources/FeedbackKit/FeedbackViewModel.swift @@ -1,6 +1,7 @@ import Combine import SwiftUI +@MainActor class FeedbackViewModel: ObservableObject { private var bag: Set