Files
scarf/scarf/Scarf iOS/Projects/ProjectSiteView.swift
Alan Wizemann 21e3cc9361 feat(ios): rust page background + dashboard switch-server button
Sweeps the rust ScarfDesign page background onto the screens that
were still rendering against the iOS default: Skills/Hub, Skills/Updates,
all three project sub-views, and Skill Detail. Lists adopt
.scrollContentBackground(.hidden) + ScarfColor.backgroundPrimary, with
.listRowBackground(ScarfColor.backgroundSecondary) on rows so the
Mac-style elevated-card density carries through.

Adds a "Switch server" toolbar button to Dashboard's top-right, threaded
through ScarfGoTabRoot from the connected-server host. One tap soft-
disconnects and returns to the server list — same code path the System
tab already exposes, just reachable without first navigating away from
Dashboard.

Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
2026-04-25 15:30:39 +02:00

20 lines
627 B
Swift

import SwiftUI
import ScarfCore
import ScarfDesign
/// Full-canvas webview wrapper for the Site sub-tab. Reuses the
/// `WebviewWidgetView` representable in its `fullCanvas: true` mode so
/// rendering, error handling, and the non-persistent data store all
/// stay in one place.
struct ProjectSiteView: View {
let widget: DashboardWidget
var body: some View {
WebviewWidgetView(widget: widget, fullCanvas: true)
.padding(.horizontal, 8)
.padding(.vertical, 8)
.frame(maxWidth: .infinity, maxHeight: .infinity)
.background(ScarfColor.backgroundPrimary)
}
}