- Add watchOS app target with mood voting UI (5 mood buttons) - Add WidgetKit complications (circular, corner, inline, rectangular) - Add WatchConnectivityManager for bidirectional sync between iOS and watch - iOS app acts as central coordinator - all mood logging flows through MoodLogger - Watch votes send to iPhone via WCSession, iPhone logs and notifies watch back - Widget votes use openAppWhenRun=true to run MoodLogger in main app process - Add #if !os(watchOS) guards to Mood.swift and Random.swift for compatibility - Update SKStoreReviewController to AppStore.requestReview (iOS 18 deprecation fix) - Watch reads user's moodImages preference from GroupUserDefaults for emoji style 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
24 lines
386 B
Swift
24 lines
386 B
Swift
//
|
|
// FeelsWatchApp.swift
|
|
// Feels Watch App
|
|
//
|
|
// Entry point for the Apple Watch companion app.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct FeelsWatchApp: App {
|
|
|
|
init() {
|
|
// Initialize Watch Connectivity for cross-device widget updates
|
|
_ = WatchConnectivityManager.shared
|
|
}
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
ContentView()
|
|
}
|
|
}
|
|
}
|