mirror of
https://github.com/metabolist/metatext.git
synced 2024-11-27 02:21:07 +00:00
20 lines
576 B
Swift
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)
|
|
}
|
|
}
|