Skip to content
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

Ensure Swift code samples are Swift 6 compatible #10820

Open
7 tasks
loic-sharma opened this issue Jun 27, 2024 · 1 comment
Open
7 tasks

Ensure Swift code samples are Swift 6 compatible #10820

loic-sharma opened this issue Jun 27, 2024 · 1 comment
Labels
co.request Community ask for documentation devos.macOS Relates to developing apps on macOS platform e2-days Effort: < 5 days p1-high Major but not urgent concern: Resolve in months. Update each month. st.triage.ltw Indicates Lead Tech Writer has triaged target.iOS Target apps on the iOS Platform
Milestone

Comments

@loic-sharma
Copy link
Member

What information needs to be added?

Swift 6 language mode enables strict concurrency checking. Code changes may be necessary for Swift code to be compatible with the Swift 6 language mode.

WWDC session: https://www.youtube.com/watch?v=75-c6jSE8kU
Migration docs: https://www.swift.org/migration/documentation/swift-6-concurrency-migration-guide/swift6mode/

See also:

Where should this new content appear?

The following pages should be checked for Swift 6 compatibility:

I would like to fix this problem.

  • I will try and fix this problem on docs.flutter.dev.
@loic-sharma loic-sharma added the co.request Community ask for documentation label Jun 27, 2024
@sfshaza2 sfshaza2 added p1-high Major but not urgent concern: Resolve in months. Update each month. e2-days Effort: < 5 days labels Jun 27, 2024
@sfshaza2 sfshaza2 added this to the Q3 release 2024 milestone Jun 27, 2024
@parlough
Copy link
Member

parlough commented Jul 7, 2024

Thanks for the issue @loic-sharma! If any of these samples (or others) do need changes to account for the strict concurrency checks, can those adjustments be made in a way that's still compatible with Swift 6? Or are there occasionally new language features or libraries required?

Either way, I imagine it's unlikely for any of the few short snippets on the site to hit this.

@atsansone atsansone added devos.macOS Relates to developing apps on macOS platform target.iOS Target apps on the iOS Platform st.triage.ltw Indicates Lead Tech Writer has triaged labels Jul 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
co.request Community ask for documentation devos.macOS Relates to developing apps on macOS platform e2-days Effort: < 5 days p1-high Major but not urgent concern: Resolve in months. Update each month. st.triage.ltw Indicates Lead Tech Writer has triaged target.iOS Target apps on the iOS Platform
Projects
None yet
Development

No branches or pull requests

4 participants