Minor UI-fixes (IOS-157)

- NavigationBar
- ContentInset for TableView
This commit is contained in:
Nathan Mattes 2023-05-19 16:34:21 +02:00
parent cfc60e6721
commit 9b0e503603
2 changed files with 8 additions and 2 deletions

View File

@ -28,11 +28,15 @@ class SuggestionAccountViewController: UIViewController, NeedsDependency {
tableView.register(SuggestionAccountTableViewCell.self, forCellReuseIdentifier: SuggestionAccountTableViewCell.reuseIdentifier) tableView.register(SuggestionAccountTableViewCell.self, forCellReuseIdentifier: SuggestionAccountTableViewCell.reuseIdentifier)
// we're lazy, that's why we don't put the Footer in tableViewFooter // we're lazy, that's why we don't put the Footer in tableViewFooter
tableView.register(SuggestionAccountTableViewFooter.self, forHeaderFooterViewReuseIdentifier: SuggestionAccountTableViewFooter.reuseIdentifier) tableView.register(SuggestionAccountTableViewFooter.self, forHeaderFooterViewReuseIdentifier: SuggestionAccountTableViewFooter.reuseIdentifier)
tableView.contentInset.top = 16
return tableView return tableView
}() }()
//TODO: Add "follow all"-footer-cell
override func viewDidLoad() { override func viewDidLoad() {
setupNavigationBarAppearance()
defer { setupNavigationBarBackgroundView() }
super.viewDidLoad() super.viewDidLoad()
title = L10n.Scene.SuggestionAccount.title title = L10n.Scene.SuggestionAccount.title
@ -140,3 +144,5 @@ extension SuggestionAccountViewController: SuggestionAccountTableViewFooterDeleg
// follow all of them // follow all of them
} }
} }
extension SuggestionAccountViewController: OnboardingViewControllerAppearance { }

View File

@ -39,7 +39,7 @@ final class SuggestionAccountTableViewCell: UITableViewCell {
bioMetaLabel.numberOfLines = 0 bioMetaLabel.numberOfLines = 0
bioMetaLabel.textAttributes = [ bioMetaLabel.textAttributes = [
.font: UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 15, weight: .regular)), .font: UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 15, weight: .regular)),
.foregroundColor: UIColor.secondaryLabel .foregroundColor: UIColor.label
] ]
bioMetaLabel.linkAttributes = [ bioMetaLabel.linkAttributes = [
.font: UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 15, weight: .semibold)), .font: UIFontMetrics(forTextStyle: .body).scaledFont(for: .systemFont(ofSize: 15, weight: .semibold)),