Implemented complete TCA architecture for iOS and watchOS targets: - Authentication flow (Sign in with Apple + Yahoo OAuth) - OAuth token management with iCloud Key-Value Storage - Yahoo Fantasy Sports API client with async/await - Watch Connectivity for iPhone ↔ Watch data sync - Complete UI for both iPhone and Watch platforms Core features: - Matchup score display - Category breakdown with win/loss/tie indicators - Roster status tracking - Manual refresh functionality - Persistent data caching on Watch Technical stack: - The Composable Architecture for state management - Swift Concurrency (async/await, actors) - WatchConnectivity framework - Sign in with Apple - OAuth 2.0 authentication flow 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
23 lines
436 B
Swift
23 lines
436 B
Swift
//
|
|
// FantasyWatch_Watch_AppApp.swift
|
|
// FantasyWatch Watch App Watch App
|
|
//
|
|
// Created by Michael Simard on 12/6/25.
|
|
//
|
|
|
|
import ComposableArchitecture
|
|
import SwiftUI
|
|
|
|
@main
|
|
struct FantasyWatch_Watch_App_Watch_AppApp: App {
|
|
let store = Store(initialState: WatchMatchupFeature.State()) {
|
|
WatchMatchupFeature()
|
|
}
|
|
|
|
var body: some Scene {
|
|
WindowGroup {
|
|
MatchupView(store: store)
|
|
}
|
|
}
|
|
}
|