metatext/Shared/View Models/PreferencesViewModel.swift
Justin Mazzocchi 581aa6d40a
Renaming
2020-08-08 16:08:47 -07:00

20 lines
549 B
Swift

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