another.im-ios/ConversationsClassic/View/Main/Settings/SettingsScreen.swift

27 lines
688 B
Swift
Raw Normal View History

2024-06-19 15:15:27 +00:00
import SwiftUI
struct SettingsScreen: View {
2024-10-04 15:58:04 +00:00
@EnvironmentObject var clientsStore: ClientsStore
2024-06-19 15:15:27 +00:00
var body: some View {
ZStack {
// bg
2024-07-04 08:21:12 +00:00
Color.Material.Background.light
2024-06-19 15:15:27 +00:00
.ignoresSafeArea()
2024-10-04 15:58:04 +00:00
// debug buttons
#if DEBUG
// clean all data
Button {
clientsStore.flushAllData()
Database.shared.flushAllData()
} label: {
Text("Clean all (for test)")
.font(.title)
.foregroundColor(.Material.Elements.active)
}
#endif
2024-06-19 15:15:27 +00:00
}
}
}