55 lines
1.2 KiB
Swift
55 lines
1.2 KiB
Swift
//
|
|
// ContentView.swift
|
|
// SecureStorgageSample
|
|
//
|
|
// Main navigation view with tabbed interface for all LocalData demos.
|
|
//
|
|
|
|
import SwiftUI
|
|
import LocalData
|
|
|
|
struct ContentView: View {
|
|
var body: some View {
|
|
TabView {
|
|
NavigationStack {
|
|
UserDefaultsDemo()
|
|
}
|
|
.tabItem {
|
|
Label("Defaults", systemImage: "gearshape.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
KeychainDemo()
|
|
}
|
|
.tabItem {
|
|
Label("Keychain", systemImage: "lock.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
FileSystemDemo()
|
|
}
|
|
.tabItem {
|
|
Label("Files", systemImage: "doc.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
EncryptedStorageDemo()
|
|
}
|
|
.tabItem {
|
|
Label("Encrypted", systemImage: "lock.shield.fill")
|
|
}
|
|
|
|
NavigationStack {
|
|
PlatformSyncDemo()
|
|
}
|
|
.tabItem {
|
|
Label("Sync", systemImage: "arrow.triangle.2.circlepath")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
#Preview {
|
|
ContentView()
|
|
}
|