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:
2026-09-07 14:02:50 -03:00
parent bf49716639
commit f6d9c1891c
6 changed files with 373 additions and 0 deletions

View File

@@ -11,6 +11,7 @@ struct BooksView: View {
@State private var books: [Book] = []
@State private var isLoading = false
@State private var errorMessage: String?
@State private var showingAbout = false
/// Livros do Antigo Testamento, em ordem canônica.
private var oldTestament: [Book] {
@@ -40,6 +41,19 @@ struct BooksView: View {
}
}
.navigationTitle("Bíblia")
.toolbar {
ToolbarItem(placement: .topBarTrailing) {
Button {
showingAbout = true
} label: {
Image(systemName: "info.circle")
}
.accessibilityLabel("Sobre o app")
}
}
.sheet(isPresented: $showingAbout) {
AboutView()
}
}
.task {
if books.isEmpty { await loadBooks() }