mirror of
https://github.com/neon443/StickerSlack.git
synced 2026-11-30 12:44:51 +00:00
aslfj;j;lask uikit!
This commit is contained in:
5 files changed
+10
-7
No files matched your search
@@ -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") {
|
||||
|
||||
@@ -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")
|
||||
}
|
||||
|
||||
@@ -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)
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -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),
|
||||
|
||||
@@ -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) {
|
||||
|
||||