Skip to content

Commit

Permalink
PR feedback
Browse files Browse the repository at this point in the history
  • Loading branch information
yuki-stripe committed Oct 18, 2023
1 parent 13359b8 commit e96d7a6
Showing 1 changed file with 1 addition and 12 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,6 @@ class SavedPaymentOptionsViewController: UIViewController {
return collectionView
}()

/// This contains views to display below the saved PM collectionView
private lazy var stackView: UIStackView = {
let stackView = UIStackView(arrangedSubviews: [collectionView, sepaMandateView])
stackView.axis = .vertical
Expand Down Expand Up @@ -201,17 +200,7 @@ class SavedPaymentOptionsViewController: UIViewController {
// MARK: - UIViewController
override func viewDidLoad() {
super.viewDidLoad()

for subview in [stackView] {
subview.translatesAutoresizingMaskIntoConstraints = false
view.addSubview(subview)
}
NSLayoutConstraint.activate([
stackView.topAnchor.constraint(equalTo: view.topAnchor),
stackView.leadingAnchor.constraint(equalTo: view.leadingAnchor),
stackView.trailingAnchor.constraint(equalTo: view.trailingAnchor),
stackView.bottomAnchor.constraint(equalTo: view.bottomAnchor),
])
view.addAndPinSubview(stackView)
updateUI()
}

Expand Down

0 comments on commit e96d7a6

Please sign in to comment.