Skip to content

Commit

Permalink
format
Browse files Browse the repository at this point in the history
  • Loading branch information
scottkicks committed Feb 22, 2024
1 parent ead7371 commit 004bfec
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -103,10 +103,10 @@ final class RewardsCollectionViewController: UICollectionViewController {

self.headerView.layoutIfNeeded()

let topSafeAreaInset = self.view.safeAreaInsets.top
let topInset = self.headerView.frame.height - topSafeAreaInset + Styles.grid(1)

if featurePostCampaignPledgeEnabled() {
let topSafeAreaInset = self.view.safeAreaInsets.top
let topInset = self.headerView.frame.height - topSafeAreaInset + Styles.grid(1)

self.collectionView.contentInset = .init(
top: topInset,
left: self.collectionView.contentInset.left,
Expand Down Expand Up @@ -235,7 +235,7 @@ final class RewardsCollectionViewController: UICollectionViewController {
self.collectionView.rightAnchor.constraint(equalTo: self.view.rightAnchor),
self.collectionView.topAnchor.constraint(equalTo: self.view.topAnchor)
])

if featurePostCampaignPledgeEnabled() {
self.headerView.leftAnchor.constraint(equalTo: self.view.leftAnchor).isActive = true
self.headerView.rightAnchor.constraint(equalTo: self.view.rightAnchor).isActive = true
Expand Down

0 comments on commit 004bfec

Please sign in to comment.