How sourcelocation/airtroller works
AirTroller is an iOS app that discovers nearby AirDrop devices, lets the user choose recipients and an image, then manages repeated sender operations and cancellation. The sampled controller and UI show the main workflow; Sharing.swift dynamically binds to Apple’s private Sharing framework. Framework-to-callback edges reflect the registered callbacks in the sampled source.
Main entry points: TrollController.swift Troll controller · ContentView.swift Main screen · ImagePickerView.swift Image picker · Sharing.swift Sharing bindings
Components 12
User interface
- App entry
AirTroller/AirTrollerApp.swift - Main screen
AirTroller/ContentView.swift - Image picker
AirTroller/Misc/ImagePickerView.swift - Alerts
AirTroller/Misc/Alert.swift
AirDrop control
- Troll controller
AirTroller/trolldrop/TrollController.swift - Sharing bindings
AirTroller/trolldrop/Sharing.swift
Platform services
- Device browser
- Sender operation
Other components
- User
- Nearby devices
- Receiving device
- Photo library
Connections 19
- User → Main screen: uses
- App entry → Main screen: presents
- Main screen → Troll controller: starts discovery
- Main screen → Image picker: opens
- Image picker → Photo library: loads image
- Image picker → Main screen: returns file URL
- Main screen → Alerts: requests confirmation
- Main screen → Troll controller: starts or stops
- Troll controller → Sharing bindings: calls bindings
- Sharing bindings → Device browser: loads browser API
- Device browser → Troll controller: calls browser callback
- Troll controller → Device browser: opens and queries
- Device browser → Nearby devices: discovers
- Main screen → Troll controller: passes image and selection
- Troll controller → Sender operation: creates and resumes
- Sender operation → Receiving device: sends AirDrop request
- Sender operation → Troll controller: calls operation callback
- Troll controller → Sender operation: cancels or resumes
- Troll controller → Main screen: reports events and people