mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 06:55:59 +00:00
Promote knocking to labs
This commit is contained in:
@@ -17,6 +17,7 @@ struct LabsScreen: View {
|
||||
header
|
||||
threadsSection
|
||||
gallerySection
|
||||
knockingSection
|
||||
}
|
||||
.compoundList()
|
||||
.navigationTitle(L10n.screenLabsTitle)
|
||||
@@ -71,6 +72,17 @@ struct LabsScreen: View {
|
||||
.compoundListSectionFooter()
|
||||
}
|
||||
}
|
||||
|
||||
private var knockingSection: some View {
|
||||
Section {
|
||||
ListRow(label: .default(title: L10n.screenLabsEnableKnocking,
|
||||
icon: \.askToJoin),
|
||||
kind: .toggle($context.knockingEnabled))
|
||||
} footer: {
|
||||
Text(L10n.screenLabsEnableKnockingDescription)
|
||||
.compoundListSectionFooter()
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// MARK: - Previews
|
||||
|
||||
Reference in New Issue
Block a user