Brent Simmons on Nostr: Here’s a Swift strict concurrency issue I haven’t figured out how to solve: when ...
Here’s a Swift strict concurrency issue I haven’t figured out how to solve: when I set UIView.accessibilityTraits to .button, .link, etc. I get a warning “Reference to static property 'button' is not concurrency-safe because it involves shared mutable state;…”
How do I fix this? Or at least silence it?
(Screenshot shows code with that warning.)
Published at
2024-05-04 17:59:08Event JSON
{
"id": "4d64d3ea0c491d8149d0a1dc35cc5ec161814e8ead849eb367aee7e727a536e5",
"pubkey": "5945ca72a468500fbf0009417a8998a8f801b45869ed995977e8d96d33a6933b",
"created_at": 1714845548,
"kind": 1,
"tags": [
[
"proxy",
"https://indieweb.social/users/brentsimmons/statuses/112384117874945170",
"activitypub"
]
],
"content": "Here’s a Swift strict concurrency issue I haven’t figured out how to solve: when I set UIView.accessibilityTraits to .button, .link, etc. I get a warning “Reference to static property 'button' is not concurrency-safe because it involves shared mutable state;…”\n\nHow do I fix this? Or at least silence it?\n\n(Screenshot shows code with that warning.)\n\nhttps://cdn.masto.host/indiewebsocial/media_attachments/files/112/384/117/558/608/123/original/10ec69fd8d905501.png",
"sig": "cda76c5cf15ee29e70047f6d3234f377e64de960086de9dac6ed57fdaa27ea7697772380f81cd46991eb4c16837d3e2aa51919a7b73bd126946589006fe7c1f4"
}