1
0
mirror of https://github.com/metabolist/metatext synced 2025-01-24 00:12:43 +01:00
metatext-app-ios-iphone-ipad/Shared/View Models/PreferencesViewModel.swift
Justin Mazzocchi f1ef5def5b
Refactoring
2020-08-07 03:59:48 -07:00

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)
}
}