mirror of
https://github.com/Novaloop-AG/element-x-ios.git
synced 2026-11-02 12:07:55 +00:00
fc75f90ef5
* Remove the dynamic member lookup from UserSettings in favour of nested access. * Remove forwarding methods from UserSettings. * Update the Enterprise submodule.
31 lines
816 B
Swift
31 lines
816 B
Swift
//
|
|
// Copyright 2026 Element Creations Ltd.
|
|
//
|
|
// SPDX-License-Identifier: AGPL-3.0-only OR LicenseRef-Element-Commercial
|
|
// Please see LICENSE files in the repository root for full details.
|
|
//
|
|
|
|
import Foundation
|
|
import UIKit
|
|
|
|
struct MediaUploadQualitySettingsScreenViewState: BindableState {
|
|
var bindings: MediaUploadQualitySettingsScreenViewStateBindings
|
|
}
|
|
|
|
struct MediaUploadQualitySettingsScreenViewStateBindings {
|
|
private let userSettings: UserSettings
|
|
|
|
init(userSettings: UserSettings) {
|
|
self.userSettings = userSettings
|
|
}
|
|
|
|
var optimizeMediaUploads: Bool {
|
|
get { userSettings.app.optimizeMediaUploads }
|
|
set { userSettings.app.optimizeMediaUploads = newValue }
|
|
}
|
|
}
|
|
|
|
enum MediaUploadQualitySettingsScreenViewAction {
|
|
case optimizeMediaUploadsChanged
|
|
}
|