mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-03 16:10:20 +00:00
@@ -18,7 +18,6 @@ import SwiftUI
|
||||
|
||||
struct SettingsScreen: View {
|
||||
@State private var showingLogoutConfirmation = false
|
||||
@Environment(\.colorScheme) private var colorScheme
|
||||
|
||||
@ScaledMetric private var avatarSize = AvatarSize.user(on: .settings).value
|
||||
@ScaledMetric private var menuIconSize = 30.0
|
||||
@@ -40,6 +39,11 @@ struct SettingsScreen: View {
|
||||
simplifiedSection
|
||||
.listRowBackground(Color.element.formRowBackground)
|
||||
|
||||
if context.viewState.showDeveloperOptions {
|
||||
developerOptionsSection
|
||||
.listRowBackground(Color.element.formRowBackground)
|
||||
}
|
||||
|
||||
signOutSection
|
||||
.listRowBackground(Color.element.formRowBackground)
|
||||
}
|
||||
@@ -89,6 +93,16 @@ struct SettingsScreen: View {
|
||||
}
|
||||
}
|
||||
|
||||
private var developerOptionsSection: some View {
|
||||
Section {
|
||||
SettingsDefaultRow(title: ElementL10n.settingsDeveloperOptions,
|
||||
image: Image(systemName: "hammer.circle")) {
|
||||
context.send(viewAction: .developerOptions)
|
||||
}
|
||||
.accessibilityIdentifier("sessionVerificationButton")
|
||||
}
|
||||
}
|
||||
|
||||
private var simplifiedSection: some View {
|
||||
Section {
|
||||
SettingsPickerRow(title: ElementL10n.settingsTimelineStyle,
|
||||
|
||||
Reference in New Issue
Block a user