aslfj;j;lask uikit!

This commit is contained in:
neon443 committed 2026-04-11 00:53:48 +01:00
1 parent 5579ff9085
commit 11f7178b31
5 files changed
+10 -7

No files matched your search

+1 -1
View File
@@ -29,7 +29,7 @@ struct BrowseView: View {
hoarder: emojiHoarder,
items: emojiHoarder.emojis.map { $0.name }
)
.ignoresSafeArea(.container, edges: .bottom)
.padding(.bottom, 10)
.id(emojiHoarder.emojis)
case .giphyGifs:
Button("download all") {
+1 -1
View File
@@ -62,7 +62,7 @@ struct SearchView: View {
case .slackEmoji:
EmojiTableView(hoarder: hoarder, items: searchResult)
.id(searchResult)
.ignoresSafeArea(edges: .bottom)
.padding(.bottom, 10)
case .giphyGifs:
Text("uhh")
}
+4 -2
View File
@@ -39,6 +39,7 @@ struct StickerRow<T: Hoarder>: View {
.frame(maxHeight: 20)
.foregroundStyle(.gray)
}
.tint(isDownloaded ? .red : .accent)
.buttonStyle(.borderless)
.alert("From Slack", isPresented: $showTooltip) {
Button("Done") {}
@@ -83,8 +84,9 @@ struct StickerRow<T: Hoarder>: View {
.transition(.scale)
}
}
.padding(.leading, -1)
.padding(.trailing, -9)
.background(.clear)
// .padding(.leading, -1)
// .padding(.trailing, -9)
}
}
+3
View File
@@ -16,6 +16,8 @@ class EmojiCell: UITableViewCell {
override init(style: UITableViewCell.CellStyle, reuseIdentifier: String?) {
super.init(style: style, reuseIdentifier: reuseIdentifier)
backgroundColor = .systemGroupedBackground
contentView.backgroundColor = .clear
spinner.startAnimating()
spinner.frame = frame
contentView.addSubview(spinner)
@@ -44,6 +46,7 @@ class EmojiCell: UITableViewCell {
hostingController = controller
contentView.addSubview(controller.view)
controller.view.backgroundColor = .clear
controller.view.translatesAutoresizingMaskIntoConstraints = false
NSLayoutConstraint.activate([
controller.view.topAnchor.constraint(equalTo: contentView.topAnchor),
+1 -3
View File
@@ -18,8 +18,6 @@ struct EmojiTableView: UIViewRepresentable {
let tableView = context.coordinator as UITableViewController
tableView.tableView.register(EmojiCell.self, forCellReuseIdentifier: "cell")
tableView.tableView.dataSource = context.coordinator
tableView.tableView.contentInset = UIEdgeInsets(top: 0, left: 0, bottom: 50, right: 0)
tableView.tableView.separatorStyle = .none
return tableView.tableView
}
@@ -40,7 +38,7 @@ struct EmojiTableView: UIViewRepresentable {
init(hoarder: EmojiHoarder, items: [String]) {
self.hoarder = hoarder
self.items = items
super.init(style: .insetGrouped)
super.init(style: .plain)
}
required init?(coder: NSCoder) {
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.