mirror of
https://github.com/omnivore-app/omnivore.git
synced 2026-03-11 08:54:26 +00:00
Fix markdown of the notifications text
This commit is contained in:
parent
33258c0051
commit
afe25c34fe
1 changed files with 14 additions and 2 deletions
|
|
@ -66,6 +66,19 @@
|
|||
.task { viewModel.checkPushNotificationsStatus() }
|
||||
}
|
||||
|
||||
private var notificationsText: some View {
|
||||
let markdown = "\(LocalText.notificationsExplainer)\n\n\(LocalText.notificationsTriggerExplainer)"
|
||||
if let notificationsText = try? AttributedString(
|
||||
markdown: markdown,
|
||||
options: .init(interpretedSyntax: .inlineOnlyPreservingWhitespace)
|
||||
) {
|
||||
return Text(notificationsText)
|
||||
.accentColor(.blue)
|
||||
}
|
||||
return Text(markdown)
|
||||
.accentColor(.blue)
|
||||
}
|
||||
|
||||
private var innerBody: some View {
|
||||
Group {
|
||||
Section {
|
||||
|
|
@ -75,8 +88,7 @@
|
|||
}
|
||||
|
||||
Section {
|
||||
Text("\(LocalText.notificationsExplainer)\n\(LocalText.notificationsTriggerExplainer)")
|
||||
.accentColor(.blue)
|
||||
notificationsText
|
||||
}
|
||||
|
||||
Section {
|
||||
|
|
|
|||
Loading…
Reference in a new issue