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