mirror of
https://github.com/metabolist/metatext.git
synced 2025-02-17 06:25:13 +00:00
20 lines
533 B
Swift
20 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)
|
|
}
|
|
}
|