another.im-ios/Monal/another.im/Views/Conversation/ConversationSettingsScreen.swift

52 lines
1.7 KiB
Swift
Raw Normal View History

2024-11-23 23:22:07 +00:00
import Combine
import Foundation
import SwiftUI
struct ConversationSettingsScreen: View {
@Environment(\.router) var router
// @EnvironmentObject var settingsStore: ChatSettingsStore
var body: some View {
ZStack {
// Background color
Color.Material.Background.light
.ignoresSafeArea()
// Content
VStack(spacing: 0) {
// Header
SharedNavigationBar(
leftButton: .init(
image: Image(systemName: "chevron.left"),
action: {
router.dismissScreen()
}
),
centerText: .init(text: centerText())
)
// Settings list
// ScrollView {
// LazyVStack(spacing: 0) {
// SharedListRow(
// iconType: .none,
// text: L10n.Conversation.Settings.enableOmemo,
// controlType: .switcher(isOn: Binding(
// get: { settingsStore.chat?.encrypted ?? false },
// set: { new in
// settingsStore.setSecured(new)
// }
// ))
// )
// }
// }
}
}
}
private func centerText() -> String {
// TODO: make center text depend on conversation type in future (chat, group chat, channel, etc.)
L10n.Conversation.Settings.Title.chat
}
}