Adding type erasers

This commit is contained in:
Max Goedjen
2020-03-07 15:04:36 -08:00
parent fb752240b5
commit e87c181e86
5 changed files with 84 additions and 2 deletions

View File

@@ -9,6 +9,9 @@ class AppDelegate: NSObject, NSApplicationDelegate {
@IBOutlet var toolbar: NSToolbar!
let secureEnclave = SecureEnclave.Store()
let smartCard = SmartCard.Store()
lazy var allStores: [AnySecretStore] = {
[AnySecretStore(secureEnclave), AnySecretStore(smartCard)]
}()
func applicationDidFinishLaunching(_ aNotification: Notification) {