mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-26 10:58:02 +00:00
* mobile: timeout call invitations, more android options * close overlays when call is accepted via notification * show incoming call above modals, dismiss modals when call is accepted * fix clickable area of create profile button * fix pending intent for rullscreen notification, update settings
49 lines
1.6 KiB
Swift
49 lines
1.6 KiB
Swift
//
|
|
// CallSettings.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by Evgeny on 27/05/2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
|
|
struct CallSettings: View {
|
|
@AppStorage(DEFAULT_WEBRTC_POLICY_RELAY) private var webrtcPolicyRelay = true
|
|
|
|
var body: some View {
|
|
VStack {
|
|
List {
|
|
Section("Settings") {
|
|
Toggle("Connect via relay", isOn: $webrtcPolicyRelay)
|
|
}
|
|
|
|
Section("Limitations") {
|
|
VStack(alignment: .leading, spacing: 8) {
|
|
textListItem("1.", "Do NOT use SimpleX for emergency calls.")
|
|
textListItem("2.", "Pre-arrange the calls, as notifications arrive with a delay (we are improving it).")
|
|
textListItem("3.", "The microphone does not work when the app is in the background.")
|
|
textListItem("4.", "To prevent the call interruption, enable Do Not Disturb mode.")
|
|
textListItem("5.", "If the video fails to connect, flip the camera to resolve it.")
|
|
}
|
|
.font(.callout)
|
|
.padding(.vertical, 8)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
private func textListItem(_ n: String, _ text: LocalizedStringKey) -> some View {
|
|
ZStack(alignment: .topLeading) {
|
|
Text(n)
|
|
Text(text).frame(maxWidth: .infinity, alignment: .leading).padding(.leading, 20)
|
|
}
|
|
}
|
|
}
|
|
|
|
struct CallSettings_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
CallSettings()
|
|
}
|
|
}
|