I'm fairly new to Swift, so I'm unsure as to what's going wrong with my code and how to fix it.
After switching to Swift 6, the view I have with requestReview throws: "Cannot form key path to main actor-isolated property 'requestReview'"
As I understand it, this is potentially due to the changes made to @MainActor. However, I am unsure how to go about fixing this error.
It's a known issue and has been reported.
See:
- https://forums.swift.org/t/swift-5-10-concurrency-and-xctest/69929/12
- https://github.com/swiftlang/swift/issues/72181
You'll have to comment it out for now or not enable Swift 6 complete concurrency checking.