mirror of
https://github.com/metabolist/metatext.git
synced 2024-06-08 08:30:32 +00:00
19 lines
543 B
Swift
19 lines
543 B
Swift
// Copyright © 2020 Metabolist. All rights reserved.
|
|
|
|
import Foundation
|
|
import ServiceLayer
|
|
|
|
public class PreferencesViewModel: ObservableObject {
|
|
public let handle: String
|
|
public let shouldShowNotificationTypePreferences: Bool
|
|
|
|
private let identification: Identification
|
|
|
|
public init(identification: Identification) {
|
|
self.identification = identification
|
|
handle = identification.identity.handle
|
|
|
|
shouldShowNotificationTypePreferences = identification.identity.lastRegisteredDeviceToken != nil
|
|
}
|
|
}
|