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

View File

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