add developer mode view and setting
Signed-off-by: Bryan Montz <bryanmontz@me.com>
This commit is contained in:
committed by
William Casarin
parent
6dfda93ff9
commit
ebcfe3c25f
23
damus/Views/Settings/DeveloperSettingsView.swift
Normal file
23
damus/Views/Settings/DeveloperSettingsView.swift
Normal file
@@ -0,0 +1,23 @@
|
||||
//
|
||||
// DeveloperSettingsView.swift
|
||||
// damus
|
||||
//
|
||||
// Created by Bryan Montz on 7/6/23.
|
||||
//
|
||||
|
||||
import Foundation
|
||||
import SwiftUI
|
||||
|
||||
struct DeveloperSettingsView: View {
|
||||
@ObservedObject var settings: UserSettingsStore
|
||||
|
||||
var body: some View {
|
||||
Form {
|
||||
Section {
|
||||
Toggle(NSLocalizedString("Developer Mode", comment: "Setting to enable developer mode"), isOn: $settings.developer_mode)
|
||||
.toggleStyle(.switch)
|
||||
}
|
||||
}
|
||||
.navigationTitle(NSLocalizedString("Developer", comment: "Navigation title for developer settings"))
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user