PhotosUI sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the PhotosUI folder.
- Catalog module label:
PhotosUI - Coverage: 4 / 4 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Bringing Photos picker to your SwiftUI app | iOS, iPadOS, Mac Catalyst, macOS, watchOS | A Swift sample with the source-visible chain PhotosPickerExampleApp → ProfileModel → PhotosUI APIs. |
Publisher-backed observable state, Actor-isolated state |
| Creating a Slideshow Project Extension for Photos | macOS | A Swift sample with the source-visible chain AppDelegate → GridViewController → AssetModel → PhotosUI / Photos APIs. |
View-controller organization, Protocol-oriented abstraction, Delegate or data-source callbacks |
| Implementing an inline Photos picker | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain InlinePhotosPickerDemoApp → ContentView → ContentViewModel → PhotosUI APIs. |
Model-View-ViewModel, Publisher-backed observable state, Actor-isolated state |
| Selecting Photos and Videos in iOS | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → ViewController → PhotosUI APIs. |
View-controller organization, Delegate or data-source callbacks |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| Publisher-backed observable state | 2 |
| Actor-isolated state | 2 |
| View-controller organization | 2 |
| Delegate or data-source callbacks | 2 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
Controller |
5 |
Model |
3 |
Delegate |
3 |
View |
3 |
App |
2 |
DataSource |
1 |
ViewModel |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
252 |
private |
20 |
private(set) |
1 |
References
Generated from the verified local catalog and completed Markdown documents.