Promote gallery messages to labs

This commit is contained in:
Stefan Ceriu
2026-09-02 11:28:36 +03:00
parent 8752897bc3
commit 6839258111
7 changed files with 21 additions and 7 deletions
@@ -36,6 +36,7 @@ struct LabsScreenViewStateBindings {
protocol LabsOptionsProtocol: AnyObject {
var threadsEnabled: Bool { get set }
var galleryEnabled: Bool { get set }
}
extension AppSettings: LabsOptionsProtocol { }
@@ -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