add settingsview

load dict and save dict
xcode 14+
This commit is contained in:
neon443
2025-11-19 08:53:38 +00:00
parent 7ca11e49a1
commit c670958562
5 changed files with 98 additions and 44 deletions

View File

@@ -0,0 +1,50 @@
//
// SettingsView.swift
// StickerSlack
//
// Created by neon443 on 18/11/2025.
//
import SwiftUI
struct SettingsView: View {
@ObservedObject var hoarder: EmojiHoarder
var body: some View {
NavigationStack {
List {
Section {
VStack(alignment: .leading) {
Image(systemName: "app.dashed")
.resizable().scaledToFit()
.frame(width: 100, height: 100)
.clipShape(RoundedRectangle(cornerRadius: 24))
.foregroundStyle(.purple)
.shadow(color: .purple, radius: 5)
Text("StickerSlack")
.font(.title)
.monospaced()
.bold()
}
}
Section {
Text("")
}
Section("Debug") {
NavigationLink {
TrieTestingView()
} label: {
Label("Tree", systemImage: "tree")
}
}
// Section(content: <#T##() -> View#>, header: <#T##() -> View#>, footer: <#T##() -> View#>)
}
}
}
}
#Preview {
SettingsView(hoarder: EmojiHoarder(localOnly: true, skipIndex: true))
}