Post

Replies

Boosts

Views

Activity

Reply to PhotoKit request AddOnly authorization error:Domain=com.apple.photos.error Code=46104
Seems to work in iOS 15, so this is what I'm doing now: requestAuthorization {   /// got permissions } func requestAuthorization(completion: @escaping (() -> Void)) {   if #available(iOS 15, *) { /// works, so use `addOnly`     PHPhotoLibrary.requestAuthorization(for: .addOnly) { (status) in       if status == .authorized || status == .limited {         completion()       }     }   } else if #available(iOS 14, *) { /// use `readWrite` directly instead. This will ask for both read and write access, but at least it doesn't crash...     PHPhotoLibrary.requestAuthorization(for: .readWrite) { (status) in       if status == .authorized || status == .limited {         completion()       }     }   } else { /// for older iOS just do `requestAuthorization`     PHPhotoLibrary.requestAuthorization { (status) in       if status == .authorized {         completion()       }     }   } }
Sep ’21
Reply to Usage of code generators
Can you use images in your submission? Definitely. PaintCode-generated code is pretty much the equivalent of an image... it shouldn't matter, I think.
Replies
Boosts
Views
Activity
Apr ’21
Reply to PhotoKit request AddOnly authorization error:Domain=com.apple.photos.error Code=46104
Seems to work in iOS 15, so this is what I'm doing now: requestAuthorization {   /// got permissions } func requestAuthorization(completion: @escaping (() -> Void)) {   if #available(iOS 15, *) { /// works, so use `addOnly`     PHPhotoLibrary.requestAuthorization(for: .addOnly) { (status) in       if status == .authorized || status == .limited {         completion()       }     }   } else if #available(iOS 14, *) { /// use `readWrite` directly instead. This will ask for both read and write access, but at least it doesn't crash...     PHPhotoLibrary.requestAuthorization(for: .readWrite) { (status) in       if status == .authorized || status == .limited {         completion()       }     }   } else { /// for older iOS just do `requestAuthorization`     PHPhotoLibrary.requestAuthorization { (status) in       if status == .authorized {         completion()       }     }   } }
Replies
Boosts
Views
Activity
Sep ’21
Reply to Clarification on offline rule
The "Feed Fleet" app is what the applicant made outside the SSC. For the SSC it has to be completely offline — you can see some past submissions here: https://github.com/wwdc/2021
Replies
Boosts
Views
Activity
Apr ’22
Reply to Driving NavigationSplitView with something other than List?
Same thing here...
Topic: UI Frameworks SubTopic: SwiftUI Tags:
Replies
Boosts
Views
Activity
Oct ’22