Skip to content

Commit

Permalink
🎨 Make check in saved PMs dynamic (#999)
Browse files Browse the repository at this point in the history
  • Loading branch information
porter-stripe authored Apr 13, 2022
1 parent 643b8ab commit 4d1dbce
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions Stripe/SavedPaymentMethodCollectionView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -332,6 +332,12 @@ extension SavedPaymentMethodCollectionView {
// A circle with an image in the middle
class CircleIconView: UIView {
let imageView: UIImageView

override var backgroundColor: UIColor? {
didSet {
imageView.tintColor = backgroundColor?.contrastingColor
}
}

required init(icon: Image, fillColor: UIColor) {
imageView = UIImageView(image: icon.makeImage(template: true))
Expand Down
Binary file modified ...ntSheetUITest.PaymentSheetSnapshotTests/[email protected]
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 4d1dbce

Please sign in to comment.