metatext/Shared/Model/AppEnvironment.swift
Justin Mazzocchi b6704c1099
Renaming
2020-08-12 02:01:21 -07:00

17 lines
493 B
Swift

// Copyright © 2020 Metabolist. All rights reserved.
import Foundation
struct AppEnvironment {
let session: Session
let webAuthSessionType: WebAuthSession.Type
let keychainServiceType: KeychainService.Type
let userDefaults: UserDefaults = .standard
}
extension AppEnvironment {
static let live: Self = Self(
session: Session(configuration: .default),
webAuthSessionType: LiveWebAuthSession.self,
keychainServiceType: LiveKeychainService.self)
}