Migration to SwiftUI App Lifecycle still not possible under iOS 16

Open
#17 1 comment 1 reaction 0 assignees View on GitHub

Nobody has claimed this yet.

Assessment

Difficulty
5/5
Estimated time
Over a week
Newbie friendliness
25/100
Issue type
Feature
Clarity
Mostly clear
Activity status
Stale
Tech stack
ios, swift
Domain
mobile

Research direction

Start by reviewing the UIKit lifecycle and CloudKit share acceptance flow described in the issue, then investigate the corresponding SwiftUI lifecycle support available under iOS 16. Done means apps using CloudKit Share can accept shares without AppDelegate and SceneDelegate while retaining access to SceneStorage.

Written by the indexing model from the issue text.

Description

Unfortunately the app (an all apps using CloudKit Share) still requires UIKit Lifecycle (AppDelegate and SceneDelegate) and currently cannot be migrated to SwiftUI Lifecycle because there is no implementation for
func windowScene(_ windowScene: UIWindowScene, userDidAcceptCloudKitShareWith cloudKitShareMetadata: CKShare.Metadata)
available for a SwiftUI Lifecycle app.
This means that basic SwiftUI features like SceneStorage are still not available for apps using CloudKit Share.

Dominant language
Swift
Stars
331
Forks
37
PR merge metrics
No merged PRs in 30d

Contributor guide

No contributing guide indexed for this repository

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from apple/sample-cloudkit-sharing

All issues in apple/sample-cloudkit-sharing

Similar issues

More Swift issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.