-
Notifications
You must be signed in to change notification settings - Fork 36
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
"Reference to class property 'enabled' is not concurrency-safe because it involves shared mutable state" with Strict Concurrency Checking = Complete #57
Comments
Hey! Thank you for raising this and for putting together a sample project. I'll take a look and try and fix it :) |
Hey :) sorry for the delay. So I think the solution to this is to just annotate the This would mean that any place it's being used needs to be annotated with |
Hi @KaneCheshire, thanks for looking into it! By annotating the
or similar, and both the Do you mean I should create an extension for Thank you! |
@cderito oh sorry no I explained that badly. What I mean is, the ShowTime type itself needs to be updated in this repo to be annotated with My main concern with doing this is that even people who don't have strict concurrency mode enabled yet will be forced to add |
Oh I see! I had a 1:1 with an Apple engineer about Swift Concurrency some time after opening this issue and I got to know that there's a Anyway this will probably become an error only once Swift 6 is out so I think the fix doesn't need to be immediate, it could just be planned in a roadmap to Swift 6, or rolled out at least once this flag becomes on by default in some Xcode release, what do you think about it? |
@KaneCheshire Any plans on updating the lib with a fix for this? |
Hello,
I tried enabling
Complete
Strict Concurrency Checking
in Xcode 14.1 (in the Build Settings of my target) and a warning appeared on the line where I was settingShowTime.enabled
.In particular my code is:
AppDelegate.swift
Please find a minimal sample project attached, it's entirely SwiftUI so no
AppDelegate
but the behavior is the same.ShowTimeTest.zip
Thank you.
The text was updated successfully, but these errors were encountered: