metatext/Shared/View Models/PreferencesViewModel.swift
Justin Mazzocchi ce3618dcbe
Refactoring
2020-08-07 15:18:54 -07:00

20 lines
576 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
class PreferencesViewModel: ObservableObject {
let handle: String
private let identityRepository: IdentityRepository
init(identityRepository: IdentityRepository) {
self.identityRepository = identityRepository
handle = identityRepository.identity.handle
}
}
extension PreferencesViewModel {
func postingReadingPreferencesViewModel() -> PostingReadingPreferencesViewModel {
PostingReadingPreferencesViewModel(identityRepository: identityRepository)
}
}