diff --git a/StickerSlack/SwiftUI/BrowseView.swift b/StickerSlack/SwiftUI/BrowseView.swift index dfa6eb8..08496c0 100644 --- a/StickerSlack/SwiftUI/BrowseView.swift +++ b/StickerSlack/SwiftUI/BrowseView.swift @@ -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") { diff --git a/StickerSlack/SwiftUI/SearchView.swift b/StickerSlack/SwiftUI/SearchView.swift index 7d26dbc..521426c 100644 --- a/StickerSlack/SwiftUI/SearchView.swift +++ b/StickerSlack/SwiftUI/SearchView.swift @@ -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") } diff --git a/StickerSlack/SwiftUI/Shared/StickerRow.swift b/StickerSlack/SwiftUI/Shared/StickerRow.swift index 2fda01c..5d829f9 100644 --- a/StickerSlack/SwiftUI/Shared/StickerRow.swift +++ b/StickerSlack/SwiftUI/Shared/StickerRow.swift @@ -39,6 +39,7 @@ struct StickerRow: 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: View { .transition(.scale) } } - .padding(.leading, -1) - .padding(.trailing, -9) + .background(.clear) +// .padding(.leading, -1) +// .padding(.trailing, -9) } } diff --git a/StickerSlack/UIKit/EmojiCell.swift b/StickerSlack/UIKit/EmojiCell.swift index 994dd19..b0bf6dc 100644 --- a/StickerSlack/UIKit/EmojiCell.swift +++ b/StickerSlack/UIKit/EmojiCell.swift @@ -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), diff --git a/StickerSlack/UIKit/EmojiTableView.swift b/StickerSlack/UIKit/EmojiTableView.swift index 9212613..5515997 100644 --- a/StickerSlack/UIKit/EmojiTableView.swift +++ b/StickerSlack/UIKit/EmojiTableView.swift @@ -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) {