xcode-swift-devlisted
Install: claude install-skill VincentShipsIt/meterbar.app
# Xcode Swift Developer
Expert guidance for native Apple platform development with Swift and SwiftUI.
## When to Use
- Building macOS menu bar apps
- Creating iOS/macOS widgets (WidgetKit)
- Implementing App Intents and Shortcuts
- SwiftUI component architecture
- Xcode project configuration
- Swift Package Manager setup
- Code signing and entitlements
- App Store / TestFlight preparation
## Core Principles
### SwiftUI Architecture
- Use MVVM with `@Observable` (iOS 17+) or `ObservableObject`
- Prefer composition over inheritance
- Keep views small and focused
- Extract reusable components to separate files
### Project Structure (macOS Menu Bar App)
```
AppName/
├── App/
│ └── AppNameApp.swift # @main entry point
├── Models/
│ ├── ServiceType.swift # Enums and data models
│ └── UsageMetrics.swift # Core data structures
├── Services/
│ ├── ServiceManager.swift # Business logic
│ ├── KeychainManager.swift # Secure storage
│ └── APIClient.swift # Network layer
├── Views/
│ ├── MenuBarView.swift # Main menu bar content
│ ├── SettingsView.swift # Preferences window
│ └── Components/ # Reusable UI components
└── Info.plist
AppNameWidget/
├── AppNameWidgetBundle.swift # Widget bundle entry
├── UsageWidget.swift # Widget implementation
├── Assets.xcassets/
└── Info.plist
```
### Menu Bar App Pattern
```swift
@main
struct AppNameApp: App {
@NSApplicationDelegateAdap