Files
nostash/Shared (App)/GettingStartediPad.swift

63 lines
2.2 KiB
Swift

//
// GettingStartediPad.swift
// Nostash
//
// Created by Ryan Breen on 2/18/23.
//
import SwiftUI
struct GettingStartediPad: View {
var body: some View {
ScrollView {
Text("Getting Started")
.font(.largeTitle)
.foregroundColor(.accentColor)
Text("iPad")
.font(.title)
.foregroundColor(.accentColor)
Text("")
Text("""
Upon installation of the app, go to **Settings -> Apps -> Safari -> Extensions** and enable the **Nostash** extension. Then open Safari and look in the toolbar, where you will see the \(Image(systemName: "puzzlepiece.extension")) icon:
""")
.padding([.horizontal, .top], 20)
Image("ipad-url-bar")
.resizable()
.scaledToFit()
.frame(maxWidth: 512)
.border(Color.accentColor, width: 2)
.padding([.top])
Text("You will be greeted by a menu like below:").padding([.top], 20)
Image("ipad-menu")
.resizable()
.scaledToFit()
.frame(maxWidth: 512)
.border(Color.accentColor, width: 2)
.padding([.top])
Text("""
The **Nostash** logo is gray, indicating the extension is inactive for this site, and must be activated first. Click on the button, and give Nostash permission to access the current site. Now the Nostash logo will appear in color, and you can click it again to access the extension.
""").multilineTextAlignment(.leading)
.padding([.horizontal, .top], 20)
Image("ipad-popup")
.resizable()
.scaledToFit()
.frame(maxWidth: 512)
.border(Color.accentColor, width: 2)
.padding([.top])
Text("You have a default profile (with a random key) setup to start. Click the **Settings** button to configure your own keys, if you have them.").padding([.top, .bottom], 20)
}
}
}
struct GettingStartediPad_Previews: PreviewProvider {
static var previews: some View {
GettingStartediPad()
}
}