Files
element-x-ios/ElementX/Sources/Application/Settings/UserSettings.swift
T
Doug fc75f90ef5 Remove the dynamic member lookup from UserSettings in favour of nested access. (#6294)
* Remove the dynamic member lookup from UserSettings in favour of nested access.

* Remove forwarding methods from UserSettings.

* Update the Enterprise submodule.
2026-10-08 15:19:44 +01:00

26 lines
745 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 Macros
/// The settings for a signed in account, composed of the app wide settings and the settings
/// specific to that account.
final nonisolated class UserSettings: Sendable {
let app: AppSettings
let account: AccountSettings
init(appSettings: AppSettings, accountSettings: AccountSettings) {
app = appSettings
account = accountSettings
}
static func mock(userID: String = "@me:matrix.org") -> UserSettings {
AppSettings.volatile().userSettings(for: userID)
}
}