mirror of
https://github.com/simplex-chat/simplex-chat.git
synced 2026-04-09 21:16:04 +00:00
* ios: video support * made video experience prettier * line reordering * fix warning * remove playback speed * fullscreen player * removed unused code * fix conflict * setting playing status better * thumbnail dimensions and loading indicator * fill under video --------- Co-authored-by: Evgeny Poberezkin <2769109+epoberezkin@users.noreply.github.com>
38 lines
1.1 KiB
Swift
38 lines
1.1 KiB
Swift
//
|
|
// ExperimentalFeaturesView.swift
|
|
// SimpleX (iOS)
|
|
//
|
|
// Created by Evgeny on 30/05/2022.
|
|
// Copyright © 2022 SimpleX Chat. All rights reserved.
|
|
//
|
|
|
|
import SwiftUI
|
|
import SimpleXChat
|
|
|
|
struct ExperimentalFeaturesView: View {
|
|
@AppStorage(GROUP_DEFAULT_XFTP_SEND_ENABLED, store: groupDefaults) private var xftpSendEnabled = false
|
|
|
|
var body: some View {
|
|
List {
|
|
Section("") {
|
|
settingsRow("arrow.up.doc") {
|
|
Toggle("Send videos and files via XFTP", isOn: $xftpSendEnabled)
|
|
.onChange(of: xftpSendEnabled) { _ in
|
|
do {
|
|
try setXFTPConfig(getXFTPCfg())
|
|
} catch {
|
|
logger.error("setXFTPConfig: cannot set XFTP config \(responseError(error))")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
struct ExperimentalFeaturesView_Previews: PreviewProvider {
|
|
static var previews: some View {
|
|
ExperimentalFeaturesView()
|
|
}
|
|
}
|