-
Notifications
You must be signed in to change notification settings - Fork 767
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Generate var getter for reuseIdentifier, fixes concurrentcy-safe error.
With `let reuseIdentifier = reuseIdentifier()`, Swift 6 would generate this error: Let 'R' is not concurrency-safe because non-'Sendable' type '_R' may have shared mutable state By changing to `var reuseIdentifier: reuseIdentifier { .init() }`, the error goes away. To be extra safe, made two additional changes (that aren't strictly needed to fix the error): - changed all other top-level lets to vars, - changed the lets in the reuseIdentifier struct to vars
- Loading branch information
1 parent
1365194
commit 1965acc
Showing
4 changed files
with
20 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters