apple / apple/sample-cloudkit-privatedb-sync
Update from Task { } to .task { }
Open
- Dominant language
- Swift
- Stars
- 194
- Forks
- 22
- PR merge metrics
- No merged PRs in 30d
Description
SwiftUI offers `.task` and `.task(id:)` for the correct lifetime of async actions, it would be great if the sample could be updated to use it.
Contributor guide
No contributing guide indexed for this repository
Research direction
Start by searching the sample for uses of Task and review the surrounding SwiftUI lifecycle code. Update the relevant sample code to use .task or .task(id:) as appropriate, then verify that the sample still builds and its async actions have the intended lifetime.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- swift
- Domain
- mobile-dev
- Issue type
- Refactor
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 48/100