How tejaswikumar8352/aircatch works
AirCatch provides a Mac host and iPad client for a wireless second display: the user discovers or manually connects to a host, pairs or reconnects, receives an encrypted video/audio stream, and sends touch, keyboard, and trackpad input back. The graph separates client experience, host display orchestration, media/input processing, and transport/security. Relationships are grounded in the README and shown source references; some subsystem internals were not sampled, so undocumented wiring is omitted.
Main entry points: HostManager.swift Host Manager · ClientManager.swift Client Manager · ContentView.swift Client Screens · VideoStreamOverlay.swift Stream Overlay
Components 26
iPad Client
- Client Screens
AirCatchClient/ContentView.swift - Client Settings
AirCatchClient/ClientSettingsView.swift - Client Manager
AirCatchClient/ClientManager.swift - Bonjour Discovery
AirCatchClient/BonjourBrowser.swift - Stream Overlay
AirCatchClient/VideoStreamOverlay.swift
Mac Host
- Host Controls
AirCatchHost/HostView.swift - Host Manager
AirCatchHost/HostManager.swift - Virtual Display
AirCatchHost/VirtualDisplayManager.swift - Display Matching
AirCatchHost/DisplayManager.swift - Bonjour Advertisement
AirCatchHost/BonjourAdvertiser.swift
Media and Input
- Touch and Keyboard
AirCatchClient/MouseInputView.swift - Video Decoder
AirCatchClient/VideoDecoder.swift - Metal Renderer
AirCatchClient/MetalVideoView.swift - Audio Playback
AirCatchClient/AudioPlayer.swift - Screen Capture and Encode
AirCatchHost/ScreenStreamer.swift - Bitrate Control
AirCatchHost/BitrateCalculator.swift - Native Input Injection
AirCatchHost/InputInjector.swift
Transport and Security
- Client Networking
AirCatchClient/NetworkManager.swift - Host Networking
AirCatchHost/NetworkManager.swift - Client Control Channel
AirCatchClient/MPCAirCatchClient.swift - Host Control Channel
AirCatchHost/MPCAirCatchHost.swift - Client Cryptography
AirCatchClient/CryptoManager.swift - Host Cryptography
AirCatchHost/CryptoManager.swift
Other components
- iPad User
- Mac User
- IP Network
Connections 29
- iPad User → Client Screens: chooses host
README.md - Client Screens → Client Manager: connects
AirCatchClient/ContentView.swift - Client Screens → Client Settings: opens settings
AirCatchClient/ContentView.swift - Client Manager → Bonjour Discovery: starts discovery
AirCatchClient/ClientManager.swift - Client Manager → Client Networking: exchanges packets
README.md - Client Manager → Client Control Channel: uses control channel
README.md - Client Manager → Client Cryptography: encrypts and authenticates
README.md - Client Manager → Stream Overlay: presents stream
AirCatchClient/ContentView.swift - Stream Overlay → Video Decoder: decodes frames
AirCatchClient/VideoStreamOverlay.swift - Video Decoder → Metal Renderer: renders frames
README.md - Stream Overlay → Touch and Keyboard: captures interaction
AirCatchClient/VideoStreamOverlay.swift - Touch and Keyboard → Client Manager: sends input
AirCatchClient/MouseInputView.swift - Client Manager → Audio Playback: plays decrypted audio
AirCatchClient/ClientManager.swift - Mac User → Host Controls: controls host
README.md - Host Controls → Host Manager: manages host
AirCatchHost/HostView.swift - Host Manager → Bonjour Advertisement: advertises service
AirCatchHost/HostManager.swift - Host Manager → Host Control Channel: handles control channel
AirCatchHost/HostManager.swift - Host Manager → Host Cryptography: authenticates sessions
README.md - Host Manager → Virtual Display: creates display
AirCatchHost/HostManager.swift - Host Manager → Screen Capture and Encode: starts capture
AirCatchHost/HostManager.swift - Host Manager → Display Matching: adjusts display mode
AirCatchHost/HostManager.swift - Host Manager → Bitrate Control: adapts bitrate
AirCatchHost/HostManager.swift - Host Manager → Native Input Injection: dispatches input
AirCatchHost/HostManager.swift - Screen Capture and Encode → Host Networking: sends encoded media
README.md - Host Networking → IP Network: transfers encrypted packets
README.md - Client Networking → IP Network: receives packets
README.md - IP Network → Bonjour Advertisement: discovers host
README.md - IP Network → Native Input Injection: carries control packets
README.md - Native Input Injection → Host Manager: reports native events
AirCatchHost/HostManager.swift