another.im-ios/ConversationsClassic/View/Main/Settings/SettingsScreen.swift
2024-10-04 17:58:04 +02:00

27 lines
688 B
Swift

import SwiftUI
struct SettingsScreen: View {
@EnvironmentObject var clientsStore: ClientsStore
var body: some View {
ZStack {
// bg
Color.Material.Background.light
.ignoresSafeArea()
// 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
}
}
}