diff --git a/WordPress/Jetpack/Classes/ViewRelated/WordPress-to-Jetpack Migration/Welcome/MigrationWelcomeViewController.swift b/WordPress/Jetpack/Classes/ViewRelated/WordPress-to-Jetpack Migration/Welcome/MigrationWelcomeViewController.swift index 089d7965df55..383b6cb2bf73 100644 --- a/WordPress/Jetpack/Classes/ViewRelated/WordPress-to-Jetpack Migration/Welcome/MigrationWelcomeViewController.swift +++ b/WordPress/Jetpack/Classes/ViewRelated/WordPress-to-Jetpack Migration/Welcome/MigrationWelcomeViewController.swift @@ -99,7 +99,7 @@ final class MigrationWelcomeViewController: UIViewController { ]) } - /// Increases the tableView's bottom inset so it doesn't cover the bottom actions sheet. + /// Increases the tableView's bottom inset so it doesn't get covered by the bottom actions sheet. private func updateTableViewContentInset() { let bottomInset = -view.safeAreaInsets.bottom + bottomSheet.bounds.height self.tableView.contentInset.bottom = bottomInset + Constants.tableViewBottomInsetMargin @@ -116,7 +116,13 @@ final class MigrationWelcomeViewController: UIViewController { static let tableViewLeadingMargin = CGFloat(30) /// Used for the `tableHeaderView` layout guide margins. - static let tableHeaderViewMargins = NSDirectionalEdgeInsets(top: 0, leading: 30, bottom: 30, trailing: 30) + static let tableHeaderViewMargins: NSDirectionalEdgeInsets = { + var insets = NSDirectionalEdgeInsets(top: 20, leading: 30, bottom: 30, trailing: 30) + if #available(iOS 15, *) { + insets.top = 0 + } + return insets + }() } }