Adiciona tela Sobre o App com Política de Privacidade e Termos e Condições
- LegalDocumentView: renderiza HTML do bundle usando WebView nativo do WebKit (iOS 26+) com suporte a dark mode - AboutView: tela com identidade visual do app, links para os documentos legais e contato - politicadeprivacidade.html / termosecondicoes.html: adicionados ao bundle com CSS para dark mode - BooksView: botão ⓘ na barra de navegação abre AboutView como sheet - PlanSettingsView: seção "Legal" com links diretos para os documentos Co-Authored-By: Claude Sonnet 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -22,6 +22,7 @@ struct PlanSettingsView: View {
|
||||
Form {
|
||||
remindersSection
|
||||
planSection
|
||||
legalSection
|
||||
}
|
||||
.navigationTitle("Plano de Leitura")
|
||||
.navigationBarTitleDisplayMode(.inline)
|
||||
@@ -140,6 +141,29 @@ struct PlanSettingsView: View {
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Legal
|
||||
|
||||
private var legalSection: some View {
|
||||
Section("Legal") {
|
||||
NavigationLink {
|
||||
LegalDocumentView(
|
||||
title: "Política de Privacidade",
|
||||
htmlFileName: "politicadeprivacidade"
|
||||
)
|
||||
} label: {
|
||||
Label("Política de Privacidade", systemImage: "hand.raised.fill")
|
||||
}
|
||||
NavigationLink {
|
||||
LegalDocumentView(
|
||||
title: "Termos e Condições",
|
||||
htmlFileName: "termosecondicoes"
|
||||
)
|
||||
} label: {
|
||||
Label("Termos e Condições", systemImage: "doc.text.fill")
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Plano
|
||||
|
||||
private var planSection: some View {
|
||||
|
||||
Reference in New Issue
Block a user