ui improvements idk

This commit is contained in:
neon443 committed 2026-04-09 00:47:05 +01:00
1 parent 7d7308b274
commit 8f3c22cc43
4 files changed
+49 -9

No files matched your search

+29 -1
View File
@@ -134,7 +134,35 @@ extension EmojiPack {
"loll",
"bleh",
"uhh",
"communist"
"communist",
"ufahh",
"uhafh",
"uhgfh",
"uoohh",
"ujyhgghh",
"uhfgh",
"ujg3thh",
"uyhh",
"ughhhh",
"uvhh",
"ujrg3tjthhg",
"ujherh",
"uxhggrh",
"ushgrq3geallh",
"u hrgqh",
"ujjjjjyhgh",
"uherhh",
"uhhesh",
"hhreruhgh",
"u hffh",
"uh h",
"uaugerhh",
"u4h3h",
"u4hh",
"ueyhh ",
"u erthh",
"uhujh",
"ujkkkkhh"
]
)
}
+4
View File
@@ -33,9 +33,11 @@ struct ContentView: View {
}
Tab(role: .search) {
NavigationStack {
SearchView(hoarder: emojiHoarder)
}
}
}
} else {
TabView {
BrowseView(emojiHoarder: emojiHoarder, gifHoarder: gifhoarder)
@@ -54,7 +56,9 @@ struct ContentView: View {
.tabItem {
Label("Setings", systemImage: "gear")
}
NavigationStack {
SearchView(hoarder: emojiHoarder)
}
.tabItem {
Label("Search", systemImage: "magnifyingglass")
}
@@ -14,6 +14,7 @@ struct EmojiPackDetailView: View {
@State var editName: Bool = false
@State var editDescription: Bool = false
@State var showAdder: Bool = false
@State var searchTerm: String = ""
var minColWidth: CGFloat { 75 }
var spacing: CGFloat { 10 }
@@ -29,7 +30,7 @@ struct EmojiPackDetailView: View {
var body: some View {
NavigationStack {
GeometryReader { geo in
VStack {
ScrollView {
Button() {
editName.toggle()
} label: {
@@ -125,26 +126,33 @@ struct EmojiPackDetailView: View {
}
}
.sheet(isPresented: $showAdder) {
NavigationStack {
SearchView(hoarder: hoarder, fromPackEditor: true) { selection in
print(selection)
withAnimation {
guard let id = UUID(uuidString: selection.id) else {
fatalError("bruh what happened to ur uuid")
}
pack.items.append(selection.name)
}
}
.navigationTitle("Search Emojis")
.navigationBarTitleDisplayMode(.inline)
.presentationDragIndicator(.visible)
.presentationDetents([.large, .medium])
.toolbar {
Button("", systemImage: "xmark") {
showAdder.toggle()
}
}
}
}
}
}
.animation(.spring, value: pack.items)
.padding(.vertical)
.padding()
Text("\(pack.items.count) Emoji\(pack.items.count.plural)")
.bold()
.multilineTextAlignment(.center)
}
.padding()
.navigationTitle(edit ? "Editing" : "Pack Details")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
@@ -177,7 +185,7 @@ struct EmojiPackDetailView: View {
@available(iOS 17, *)
#Preview {
@Previewable @State var pack: EmojiPack = .new()
@Previewable @State var pack: EmojiPack = .test
EmojiPackDetailView(
hoarder: EmojiHoarder(localOnly: true, skipIndex: false),
pack: $pack
+1 -1
View File
@@ -32,7 +32,7 @@ struct SearchView: View {
@Environment(\.dismiss) var dismiss
var body: some View {
NavigationStack {
VStack {
if fromPackEditor {
GeometryReader { geo in
let columns: Int = max(1, Int((geo.size.width - 2*spacing) / (minColWidth + spacing)))
Reference in new issue
Block a user
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.