Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
swiftlint
Browse files Browse the repository at this point in the history
brindy committed Jan 31, 2024
1 parent c04ff1c commit 9210a12
Showing 1 changed file with 12 additions and 6 deletions.
18 changes: 12 additions & 6 deletions DuckDuckGo/MainView.swift
Original file line number Diff line number Diff line change
@@ -219,7 +219,8 @@ extension MainViewFactory {

coordinator.constraints.navigationBarContainerTop = navigationBarContainer.constrainView(superview.safeAreaLayoutGuide, by: .top)
coordinator.constraints.navigationBarContainerBottom = navigationBarContainer.constrainView(toolbar, by: .bottom, to: .top)
coordinator.constraints.navigationBarCollectionViewBottom = navigationBarCollectionView.constrainView(navigationBarContainer, by: .bottom, relatedBy: .greaterThanOrEqual)
coordinator.constraints.navigationBarCollectionViewBottom
= navigationBarCollectionView.constrainView(navigationBarContainer, by: .bottom, relatedBy: .greaterThanOrEqual)

NSLayoutConstraint.activate([
coordinator.constraints.navigationBarContainerTop,
@@ -251,9 +252,11 @@ extension MainViewFactory {
let statusBackground = coordinator.statusBackground!
let navigationBarContainer = coordinator.navigationBarContainer!

coordinator.constraints.statusBackgroundToNavigationBarContainerBottom = statusBackground.constrainView(navigationBarContainer, by: .bottom)
coordinator.constraints.statusBackgroundToNavigationBarContainerBottom
= statusBackground.constrainView(navigationBarContainer, by: .bottom)

coordinator.constraints.statusBackgroundBottomToSafeAreaTop = statusBackground.constrainView(coordinator.superview.safeAreaLayoutGuide, by: .bottom, to: .top)
coordinator.constraints.statusBackgroundBottomToSafeAreaTop
= statusBackground.constrainView(coordinator.superview.safeAreaLayoutGuide, by: .bottom, to: .top)

NSLayoutConstraint.activate([
statusBackground.constrainView(superview, by: .width),
@@ -269,8 +272,10 @@ extension MainViewFactory {
let navigationBarContainer = coordinator.navigationBarContainer!
let statusBackground = coordinator.statusBackground!

coordinator.constraints.notificationContainerTopToNavigationBar = notificationBarContainer.constrainView(navigationBarContainer, by: .top, to: .bottom)
coordinator.constraints.notificationContainerTopToStatusBackground = notificationBarContainer.constrainView(statusBackground, by: .top, to: .bottom)
coordinator.constraints.notificationContainerTopToNavigationBar
= notificationBarContainer.constrainView(navigationBarContainer, by: .top, to: .bottom)
coordinator.constraints.notificationContainerTopToStatusBackground
= notificationBarContainer.constrainView(statusBackground, by: .top, to: .bottom)
coordinator.constraints.notificationContainerHeight = notificationBarContainer.constrainAttribute(.height, to: 0)

NSLayoutConstraint.activate([
@@ -290,7 +295,8 @@ extension MainViewFactory {

coordinator.constraints.contentContainerTop = contentContainer.constrainView(notificationBarContainer, by: .top, to: .bottom)
coordinator.constraints.contentContainerBottomToToolbarTop = contentContainer.constrainView(toolbar, by: .bottom, to: .top)
coordinator.constraints.contentContainerBottomToNavigationBarContainerTop = contentContainer.constrainView(navigationBarContainer, by: .bottom, to: .top)
coordinator.constraints.contentContainerBottomToNavigationBarContainerTop
= contentContainer.constrainView(navigationBarContainer, by: .bottom, to: .top)

NSLayoutConstraint.activate([
contentContainer.constrainView(superview, by: .leading),

0 comments on commit 9210a12

Please sign in to comment.