// // Storage.swift // eqMac // // Created by Roman Kisil on 12/05/2018. // Copyright © 2018 Roman Kisil. All rights reserved. // import Foundation import KeychainSwift import SwiftyUserDefaults import AVFoundation extension DefaultsKeys { static let state = DefaultsKey("state") static let isFirstLaunch = DefaultsKey("isFirstLaunch") // Device static let lastKnownOutputDeviceId = DefaultsKey("lastKnownOutputDeviceId") static let lastKnownInputDeviceId = DefaultsKey("lastKnownInputDeviceId") // Effects // Effects - Equalizer // Effects - Equalizer - Basic static let basicEqualizerPresets = DefaultsKey<[BasicEqualizerPreset]?>("basicEqualizerPresets") // Effects - Equalizer - Advanced static let advancedEqualizerPresets = DefaultsKey<[AdvancedEqualizerPreset]?>("advancedEqualizerPresets") } let Storage = Defaults let StorageKeys = DefaultsKeys.self let Keychain = KeychainSwift()