mirror of
https://github.com/maxgoedjen/secretive.git
synced 2024-11-29 17:07:08 +00:00
30 lines
812 B
Swift
30 lines
812 B
Swift
|
//
|
||
|
// NoStoresView.swift
|
||
|
// Secretive
|
||
|
//
|
||
|
// Created by Max Goedjen on 3/20/20.
|
||
|
// Copyright © 2020 Max Goedjen. All rights reserved.
|
||
|
//
|
||
|
|
||
|
import SwiftUI
|
||
|
|
||
|
struct NoStoresView: View {
|
||
|
var body: some View {
|
||
|
VStack {
|
||
|
Text("No Secure Storage Available").bold()
|
||
|
Text("Your Mac doesn't have a Secure Enclave, and there's not a compatible Smart Card inserted.")
|
||
|
Button(action: {
|
||
|
NSWorkspace.shared.open(URL(string: "https://www.yubico.com/products/compare-yubikey-5-series/")!)
|
||
|
}) {
|
||
|
Text("If you're looking to add one to your Mac, the YubiKey 5 Series are great.")
|
||
|
}
|
||
|
}.padding()
|
||
|
}
|
||
|
}
|
||
|
|
||
|
struct NoStoresView_Previews: PreviewProvider {
|
||
|
static var previews: some View {
|
||
|
NoStoresView()
|
||
|
}
|
||
|
}
|