mac-cain13 / R.swift

Strong typed, autocompleted resources like images, fonts and segues in Swift projects
MIT License
9.49k stars 762 forks source link

Call to main actor-isolated initializer 'init(resource:)' in a synchronous nonisolated context #760

Closed sprzenus closed 1 year ago

sprzenus commented 2 years ago

I get the error on every line containing

return UIKit.UIStoryboard(resource: R.storyboard.anything)

also happens for UIKit.UINib(resource:)

IDE: Xcode 14 RC Target: iOS 14

sprzenus commented 2 years ago

Just noticed it only happens if you set "Strict Concurrency Checking" in Build Settings to "Complete"