Impressia/Vernissage/Models/ApplicationState.swift
2022-12-30 18:20:54 +01:00

25 lines
561 B
Swift

//
// https://mczachurski.dev
// Copyright © 2022 Marcin Czachurski and the repository contributors.
// Licensed under the MIT License.
//
import Foundation
public class ApplicationState: ObservableObject {
public static let shared = ApplicationState()
@Published var accountData: AccountData?
}
extension ApplicationState {
public static var preview: ApplicationState = {
let applicationState = ApplicationState()
applicationState.accountData = AccountData()
return applicationState
}()
}