Files
hapi/ios/Hapi/Features/Links/PrivacyPolicyLink.swift
T
weishu 98541c10ab fix(ios): add privacy policy links and clarify relay disclosures
Expose the public privacy policy from pairing and Settings, with a Simplified Chinese label. Document relay metadata, rate-limit state, operational logs, and deletion boundaries without inventing a retention period.

Validation: iOS Release simulator build, link UI checks, docs build, and staged diff checks passed. Full typecheck is blocked by existing Web assistant-ui export errors; the full test command stops at one unrelated piEventConverter CLI failure (2609 passed, 2 skipped).
2026-09-09 16:45:19 +08:00

14 lines
432 B
Swift

import SwiftUI
/// Available before pairing as well as in settings; never includes hub credentials.
struct PrivacyPolicyLink: View {
private static let destination = URL(string: "https://hapi.run/docs/privacy")
var body: some View {
if let destination = Self.destination {
Link("Privacy Policy", destination: destination)
.accessibilityIdentifier("privacyPolicyLink")
}
}
}