Files
OSGKeyboard/OSGKeyboard/Views/HelpFeedbackView.swift
T
Rocky 498f407585 feat(account): add managed credits and cloud gateway
Introduce optional Apple account-backed credits with scoped gateway access while preserving local and BYOK paths. Refresh assistant behavior, tests, privacy disclosures, docs, and the website for the 2.0 experience.
2026-08-20 11:43:21 +08:00

37 lines
1.1 KiB
Swift

// HelpFeedbackView.swift
// OSGKeyboard · Main App
//
// In-app GitHub Issues page. Reached from Settings → About.
import OSGKeyboardShared
import SwiftUI
struct HelpFeedbackView: View {
@Environment(\.themePalette) private var palette: ThemePalette
@State private var isLoading = true
var body: some View {
Group {
if let url = LegalLinks.supportURL {
ZStack {
RemoteWebView(url: url, isLoading: $isLoading)
if isLoading {
ProgressView()
.tint(palette.accent)
}
}
} else {
ContentUnavailableView(
"settings.support.unavailable.title",
systemImage: "wifi.slash",
description: Text("settings.support.unavailable.message")
)
}
}
.background(palette.background.ignoresSafeArea())
.navigationTitle("settings.link.support")
.navigationBarTitleDisplayMode(.inline)
.hidesTabBarWhenPushed()
}
}