Skip to content

Commit

Permalink
Prevent card layout calculations when the view is hidden (#922)
Browse files Browse the repository at this point in the history
  • Loading branch information
justinswart committed Oct 31, 2019
1 parent e3ef2fe commit 3aa68d3
Showing 1 changed file with 2 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -174,6 +174,8 @@ final class PledgeDescriptionViewController: UIViewController {
}

private func sizeAndTransformRewardCardView() {
guard !self.view.isHidden else { return }

self.rewardCardContainerView.layoutIfNeeded()

let cardContainerViewSize = self.rewardCardContainerView.bounds.size
Expand Down

0 comments on commit 3aa68d3

Please sign in to comment.