Advanced settings fixes (#1857)

* vector-im/element-meta/issues/2042 - Fix advanced options ordering and capitalisation

* Bump swiftlint's type_body_length warning to 1000, make it match error.

* Fix unit tests
This commit is contained in:
Stefan Ceriu
2023-10-05 17:26:02 +03:00
committed by GitHub
parent cd48fc10d4
commit 72a96b6850
7 changed files with 17 additions and 14 deletions
@@ -28,11 +28,11 @@ struct AdvancedSettingsScreen: View {
kind: .picker(selection: $context.timelineStyle,
items: TimelineStyle.allCases.map { (title: $0.name, tag: $0) }))
ListRow(label: .default(title: L10n.actionViewSource, systemIcon: .mailAndTextMagnifyingglass),
kind: .toggle($context.viewSourceEnabled))
ListRow(label: .default(title: L10n.commonRichTextEditor, icon: Image(asset: Asset.Images.textFormat)),
kind: .toggle($context.richTextEditorEnabled))
ListRow(label: .default(title: L10n.actionViewSource, systemIcon: .mailAndTextMagnifyingglass),
kind: .toggle($context.viewSourceEnabled))
}
}
.compoundList()