using diffable datasource for collectionview

fixed stretched images in uikit gifview
testing always animating tableview changes
added adding to emojipack support from the sheet lol
This commit is contained in:
Nihaal Sharma committed 2026-05-08 09:23:00 +01:00
1 parent d0358e48f0
commit cdd6dc5b4e
7 files changed
+45 -25

No files matched your search

@@ -110,19 +110,17 @@ struct EmojiPackDetailView: View {
SearchView(
hoarder: hoarder,
fromPackEditor: true,
callback: { emoji in
pack.add(emoji.name)
}
callback: { pack.add($0); showAdder.toggle() }
)
.navigationTitle("Search Emojis")
.navigationBarTitleDisplayMode(.inline)
.toolbar {
Button("", systemImage: "xmark") {
Button("", systemImage: "check") {
showAdder.toggle()
}
}
.modifier(presentationHalfAndFullIfAv())
}
.modifier(presentationHalfAndFullIfAv())
}
}
}
@@ -111,7 +111,7 @@ struct EmojiPackGridView: View {
NavigationView2 {
SearchView(hoarder: hoarder, fromPackEditor: true) { selection in
withAnimation(.spring) {
pack.add(selection.name)
pack.add(selection)
}
}
.navigationTitle("Search Emojis")
+2 -2
View File
@@ -18,7 +18,7 @@ struct SearchView: View {
@State var stickerType: StickerType = .slackEmoji
@State var fromPackEditor: Bool = false
@State var callback: ((Emoji) -> Void) = { _ in }
@State var callback: ((String) -> Void) = { _ in }
var minColWidth: CGFloat { 75 }
var spacing: CGFloat { 10 }
var col: GridItem {
@@ -51,7 +51,7 @@ struct SearchView: View {
// .padding()
// }
// }
EmojiCollectionView(hoarder: hoarder, items: searchResult, width: 75, style: .plain)
EmojiCollectionView(hoarder: hoarder, items: searchResult, width: 75, style: .plain, onTapCallback: { callback($0) })
} else {
Picker("", selection: $stickerType) {
ForEach(StickerType.allCases) { type in
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.