- Create new iOS app at apps/ios-github-mobile - Session list view with repository info and status - Chat view with collapsible tool executions (Write, Bash, Read) - Message input with model/repo/branch selection chips - PR creation flow simulation - Dark theme matching Claude Code aesthetic - Mock data for repos, sessions, and tool calls - Modern SwiftUI with @Observable, NavigationStack https://claude.ai/code/session_018qmTB96S8xvNRQFrhcvzJp
21 lines
476 B
Swift
21 lines
476 B
Swift
import SwiftUI
|
|
|
|
struct ContentView: View {
|
|
@Environment(AppState.self) private var appState
|
|
|
|
var body: some View {
|
|
NavigationStack(path: Bindable(appState).navigationPath) {
|
|
SessionListView()
|
|
.navigationDestination(for: Session.self) { session in
|
|
ChatView(session: session)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
.environment(AppState())
|
|
.preferredColorScheme(.dark)
|
|
}
|