mirror of
https://github.com/metabolist/metatext
synced 2025-01-24 00:12:43 +01:00
21 lines
533 B
Swift
21 lines
533 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
|
|
class PreferencesViewModel: ObservableObject {
|
|
let handle: String
|
|
|
|
private let environment: IdentifiedEnvironment
|
|
|
|
init(environment: IdentifiedEnvironment) {
|
|
self.environment = environment
|
|
handle = environment.identity.handle
|
|
}
|
|
}
|
|
|
|
extension PreferencesViewModel {
|
|
func postingReadingPreferencesViewModel() -> PostingReadingPreferencesViewModel {
|
|
PostingReadingPreferencesViewModel(environment: environment)
|
|
}
|
|
}
|