Private
Public Access
1
0
Files
SilverApple/SilverApple/Settings/Views/ServerConfigView.swift
SilverLABS 9073a51787 fix(build): resolve Xcode 26 compilation errors
- Add ServerConfigView stub (referenced in SilverAppleApp.swift)
- Add HardeningListView stub (referenced in DashboardView.swift)
- Fix .accentColor → Color.accentColor (ShapeStyle removed member)
- Fix withCheckedThrowingContinuation explicit type annotation
- Make AppEnvironment.serverUrl internal for ServerConfigView access

Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
2026-04-05 12:13:04 +01:00

30 lines
831 B
Swift

import SwiftUI
struct ServerConfigView: View {
@EnvironmentObject var env: AppEnvironment
var body: some View {
NavigationStack {
List {
Section("Server") {
HStack {
Text("URL")
Spacer()
Text(env.serverUrl.isEmpty ? "Not configured" : env.serverUrl)
.foregroundStyle(.secondary)
.lineLimit(1)
.truncationMode(.middle)
}
}
Section {
Button("Sign Out", role: .destructive) {
env.authService.signOut()
}
}
}
.navigationTitle("Settings")
}
}
}