Show magnifying glass next to hashtags (IOS-141)
This commit is contained in:
parent
c4b31112a4
commit
11863b9458
|
@ -2154,13 +2154,6 @@
|
|||
path = Status;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
DB4F098026A0475500D62E92 /* View */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
);
|
||||
path = View;
|
||||
sourceTree = "<group>";
|
||||
};
|
||||
DB4FFC2D269EC39C00D62E92 /* Search */ = {
|
||||
isa = PBXGroup;
|
||||
children = (
|
||||
|
@ -2935,7 +2928,6 @@
|
|||
isa = PBXGroup;
|
||||
children = (
|
||||
DB63F7502799449300455B82 /* Cell */,
|
||||
DB4F098026A0475500D62E92 /* View */,
|
||||
DBF1D250269DB01200C1C08A /* SearchHistoryViewController.swift */,
|
||||
DB63F76127996B6600455B82 /* SearchHistoryViewController+DataSourceProvider.swift */,
|
||||
DB4F097426A037F500D62E92 /* SearchHistoryViewModel.swift */,
|
||||
|
|
|
@ -12,7 +12,7 @@ class SearchResultDefaultSectionTableViewCell: UITableViewCell {
|
|||
content.text = item.title
|
||||
content.imageProperties.tintColor = Asset.Colors.Brand.blurple.color
|
||||
|
||||
self.contentConfiguration = content
|
||||
contentConfiguration = content
|
||||
}
|
||||
|
||||
func configure(item: SearchResultOverviewItem.SuggestionSectionEntry) {
|
||||
|
@ -21,6 +21,6 @@ class SearchResultDefaultSectionTableViewCell: UITableViewCell {
|
|||
content.text = item.title
|
||||
content.imageProperties.tintColor = Asset.Colors.Brand.blurple.color
|
||||
|
||||
self.contentConfiguration = content
|
||||
contentConfiguration = content
|
||||
}
|
||||
}
|
||||
|
|
|
@ -8,6 +8,7 @@
|
|||
import UIKit
|
||||
import CoreDataStack
|
||||
import MastodonCore
|
||||
import MastodonAsset
|
||||
|
||||
enum SearchHistorySection: Hashable {
|
||||
case main
|
||||
|
@ -47,6 +48,8 @@ extension SearchHistorySection {
|
|||
context.managedObjectContext.performAndWait {
|
||||
guard let hashtag = item.object(in: context.managedObjectContext) else { return }
|
||||
var contentConfiguration = cell.defaultContentConfiguration()
|
||||
contentConfiguration.image = UIImage(systemName: "magnifyingglass")
|
||||
contentConfiguration.imageProperties.tintColor = Asset.Colors.Brand.blurple.color
|
||||
contentConfiguration.text = "#" + hashtag.name
|
||||
cell.contentConfiguration = contentConfiguration
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue