498f407585
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.
37 lines
1.1 KiB
Swift
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()
|
|
}
|
|
}
|