What problem does it solve?
Trebuchet-powered SwiftUI apps often struggle to reliably connect to remote actors and reflect remote state in the UI. This Skill addresses that by providing declarative patterns to manage observable connections, automatic reconnection, and consistent state updates across views.
Core Features & Use Cases
- Declarative connection management: Observe and react to remote actor state with @RemoteActor, @ObservedActor, and RemoteActorView.
- Multi-server readiness: Seamlessly switch between named connections to support complex app architectures.
- Resilient UI updates: Automatic reconnection with configurable policies to keep the UI in sync during network disruptions.
Quick Start
Use this Skill to wire Trebuchet into your SwiftUI app and begin observing remote actor state.
- How do I connect a SwiftUI app to Trebuchet and display remote actor state?
- Focus on applying the .trebuchet() modifier at app root and declaring a @RemoteActor in your view.
- Additional setup: ensure Trebuchet is added as a Swift package and configure a reconnection policy if needed.