Minor UI-fixes (IOS-157)
- NavigationBar - ContentInset for TableView
This commit is contained in:
parent
cfc60e6721
commit
9b0e503603
|
@ -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 { }
|
||||||
|
|
|
@ -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)),
|
||||||
|
|
Loading…
Reference in New Issue