Files
raspberry/iOS/Wallet/Sources/AccountOnboarding/Service/AccountOnboardingServiceCommon.swift
2022-12-13 22:46:16 +03:00

29 lines
766 B
Swift

//
// AccountOnboardingServiceCommon.swift
// Wallet
//
// Created by Saveliy Stavitsky on 3/15/21.
// Copyright © 2021 AM. All rights reserved.
//
import Foundation
import WalletFoundation
private let finishedOnboardingKey = CommonKey("Common.Service.Settings.onboarding")
private let newsShowedKey = CommonKey("Common.Service.Main.newsShowed")
extension AccountOnboarding.Service {
class Common {
var finishedOnboarding: Bool {
get { Settings.shared[finishedOnboardingKey] }
set { Settings.shared[finishedOnboardingKey] = newValue }
}
var newsShowed: [String]? {
get { Settings.shared[newsShowedKey] }
set { Settings.shared[newsShowedKey] = newValue }
}
}
}