diff --git a/DuckDuckGo/HomeCollectionView.swift b/DuckDuckGo/HomeCollectionView.swift index dda0196b5a..ee0b6818ee 100644 --- a/DuckDuckGo/HomeCollectionView.swift +++ b/DuckDuckGo/HomeCollectionView.swift @@ -87,9 +87,7 @@ class HomeCollectionView: UICollectionView { renderers.install(renderer: FavoritesHomeViewSectionRenderer(viewModel: favoritesViewModel)) case .homeMessage: - if #available(iOS 16.0, *) { - renderers.install(renderer: HomeMessageViewSectionRenderer(homePageConfiguration: homePageConfiguration)) - } + renderers.install(renderer: HomeMessageViewSectionRenderer(homePageConfiguration: homePageConfiguration)) case .appTrackingProtection: #if APP_TRACKING_PROTECTION diff --git a/DuckDuckGo/HomeMessageView.swift b/DuckDuckGo/HomeMessageView.swift index 4b9bffb7e5..caedca4edd 100644 --- a/DuckDuckGo/HomeMessageView.swift +++ b/DuckDuckGo/HomeMessageView.swift @@ -46,9 +46,7 @@ struct HomeMessageView: View { @State var activityItem: ShareItem? var body: some View { - ZStack { - closeButtonHeader - + ZStack(alignment: .topTrailing) { VStack(spacing: 8) { Group { topText @@ -78,6 +76,11 @@ struct HomeMessageView: View { .multilineTextAlignment(.center) .padding(.vertical) .padding(.horizontal, 8) + + closeButtonHeader + .alignmentGuide(.top) { dimension in + dimension[.top] + } } .background(RoundedRectangle(cornerRadius: Const.Radius.corner) .fill(Color.background) @@ -97,7 +100,6 @@ struct HomeMessageView: View { closeButton .padding(0) } - Spacer() } }