mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
Promote gallery messages to labs
This commit is contained in:
@@ -16,6 +16,7 @@ struct LabsScreen: View {
|
||||
Form {
|
||||
header
|
||||
threadsSection
|
||||
gallerySection
|
||||
}
|
||||
.compoundList()
|
||||
.navigationTitle(L10n.screenLabsTitle)
|
||||
@@ -59,6 +60,17 @@ struct LabsScreen: View {
|
||||
context.send(viewAction: .clearCache)
|
||||
}
|
||||
}
|
||||
|
||||
private var gallerySection: some View {
|
||||
Section {
|
||||
ListRow(label: .default(title: L10n.screenLabsEnableGallery,
|
||||
icon: \.image),
|
||||
kind: .toggle($context.galleryEnabled))
|
||||
} footer: {
|
||||
Text(L10n.screenLabsEnableGalleryDescription)
|
||||
.compoundListSectionFooter()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
Reference in New Issue
Block a user