From ccc8741ccd1b695d927a87a10f976f42fce669fa Mon Sep 17 00:00:00 2001 From: CMK Date: Thu, 25 Feb 2021 11:48:16 +0800 Subject: [PATCH] chore: set public timeline title and update loader height --- .../Scene/PublicTimeline/PublicTimelineViewController.swift | 1 + .../Share/View/TableviewCell/TimelineLoaderTableViewCell.swift | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/Mastodon/Scene/PublicTimeline/PublicTimelineViewController.swift b/Mastodon/Scene/PublicTimeline/PublicTimelineViewController.swift index 62993bfb..5a5001c1 100644 --- a/Mastodon/Scene/PublicTimeline/PublicTimelineViewController.swift +++ b/Mastodon/Scene/PublicTimeline/PublicTimelineViewController.swift @@ -42,6 +42,7 @@ extension PublicTimelineViewController { override func viewDidLoad() { super.viewDidLoad() + title = "Public" view.backgroundColor = Asset.Colors.Background.systemGroupedBackground.color tableView.refreshControl = refreshControl diff --git a/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift b/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift index f9508894..6aa19524 100644 --- a/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift +++ b/Mastodon/Scene/Share/View/TableviewCell/TimelineLoaderTableViewCell.swift @@ -11,7 +11,7 @@ import Combine class TimelineLoaderTableViewCell: UITableViewCell { static let cellHeight: CGFloat = 44 + TimelineLoaderTableViewCell.extraTopPadding + TimelineLoaderTableViewCell.bottomPadding - static let extraTopPadding: CGFloat = 3 // the status cell already has 10pt bottom padding + static let extraTopPadding: CGFloat = 0 // the status cell already has 10pt bottom padding static let bottomPadding: CGFloat = StatusTableViewCell.bottomPaddingHeight + TimelineLoaderTableViewCell.extraTopPadding // make balance var disposeBag = Set()