fix: pick scene UI layout issue
This commit is contained in:
parent
490e168b7d
commit
2bf40b3d09
|
@ -22,7 +22,6 @@ final class MastodonPickServerViewController: UIViewController, NeedsDependency
|
|||
private var expandServerDomainSet = Set<String>()
|
||||
|
||||
private let emptyStateView = PickServerEmptyStateView()
|
||||
private let emptyStateViewHPadding: CGFloat = 4 // UIView's readableContentGuide is 4pt smaller then UITableViewCell's
|
||||
let tableViewTopPaddingView = UIView() // fix empty state view background display when tableView bounce scrolling
|
||||
var tableViewTopPaddingViewHeightLayoutConstraint: NSLayoutConstraint!
|
||||
|
||||
|
@ -90,8 +89,8 @@ extension MastodonPickServerViewController {
|
|||
view.addSubview(emptyStateView)
|
||||
NSLayoutConstraint.activate([
|
||||
emptyStateView.topAnchor.constraint(equalTo: view.topAnchor),
|
||||
emptyStateView.leadingAnchor.constraint(equalTo: view.readableContentGuide.leadingAnchor, constant: emptyStateViewHPadding),
|
||||
emptyStateView.trailingAnchor.constraint(equalTo: view.readableContentGuide.trailingAnchor, constant: -emptyStateViewHPadding),
|
||||
emptyStateView.leadingAnchor.constraint(equalTo: view.readableContentGuide.leadingAnchor),
|
||||
emptyStateView.trailingAnchor.constraint(equalTo: view.readableContentGuide.trailingAnchor),
|
||||
nextStepButton.topAnchor.constraint(equalTo: emptyStateView.bottomAnchor, constant: 21),
|
||||
])
|
||||
|
||||
|
|
Loading…
Reference in New Issue