diff --git a/Stripe/SavedPaymentMethodCollectionView.swift b/Stripe/SavedPaymentMethodCollectionView.swift index 5783de8ea05..f2b7bea8b0d 100644 --- a/Stripe/SavedPaymentMethodCollectionView.swift +++ b/Stripe/SavedPaymentMethodCollectionView.swift @@ -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)) diff --git a/Tests/ReferenceImages_64/PaymentSheetUITest.PaymentSheetSnapshotTests/testPaymentSheetCustomAppearance@3x.png b/Tests/ReferenceImages_64/PaymentSheetUITest.PaymentSheetSnapshotTests/testPaymentSheetCustomAppearance@3x.png index 7d37cbffc03..4603f24f54f 100644 Binary files a/Tests/ReferenceImages_64/PaymentSheetUITest.PaymentSheetSnapshotTests/testPaymentSheetCustomAppearance@3x.png and b/Tests/ReferenceImages_64/PaymentSheetUITest.PaymentSheetSnapshotTests/testPaymentSheetCustomAppearance@3x.png differ