Core Bluetooth sample architecture
Source-backed, high-level architecture notes for Apple sample-code pages grouped in the Core Bluetooth folder.
- Catalog module label:
Core Bluetooth - Coverage: 3 / 3 sample pages documented
- Source policy: archive hashes and extracted-tree references are verified locally before analysis
Samples
| Sample | Platforms | High-level architecture | Documented patterns |
|---|---|---|---|
| Measuring distance between devices using Channel Sounding | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → ViewController → BluetoothManager → CoreBluetooth APIs. |
View-controller organization, Delegate or data-source callbacks, SwiftUI environment injection, Binding-based state propagation, Publisher-backed observable state, Actor-isolated state |
| Transferring Data Between Bluetooth Low Energy Devices | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → CentralViewController → TransferService → CoreBluetooth APIs. |
View-controller organization, Delegate or data-source callbacks, Service object |
| Using Core Bluetooth Classic | iOS, iPadOS, Mac Catalyst | A Swift sample with the source-visible chain AppDelegate → CentralViewController → CoreBluetooth APIs. |
View-controller organization, Delegate or data-source callbacks |
Cross-sample signals
Recurring documented patterns
| Pattern label | Sample documents |
|---|---|
| View-controller organization | 3 |
| Delegate or data-source callbacks | 3 |
Type-role naming evidence
Counts below are declaration-name suffixes, not inferred patterns.
| Role suffix | Distinct declarations across samples |
|---|---|
Controller |
5 |
Delegate |
4 |
View |
4 |
Manager |
1 |
Service |
1 |
Swift access-control evidence
These are declaration occurrences in scanned Swift source, including implicit internal declarations.
| Access level | Occurrences |
|---|---|
implicit internal |
193 |
private |
21 |
internal |
4 |
private(set) |
2 |
References
Generated from the verified local catalog and completed Markdown documents.