stripe / stripe-ios

Stripe iOS SDK
https://stripe.com
MIT License
2.13k stars 984 forks source link

Add `PromoBadgeView` in horizontal and vertical elements #4289

Open tillh-stripe opened 1 week ago

tillh-stripe commented 1 week ago

Summary

This pull request adds a PromoBadge component and renders it in the payment method tab and payment method row. It’s currently only visible in screenshot tests, but will start showing up in the sheet with https://github.com/stripe/stripe-ios/pull/4285 (behind a feature flag).

Motivation

CONSUMERBANK-568

Testing

Changelog

github-actions[bot] commented 1 week ago

🚨 New dead code detected in this PR:

PromoBadgeView.swift:16 warning: Property 'tinyMode' is assigned, but never used

Please remove the dead code before merging.

If this is intentional, you can bypass this check by adding the label skip dead code check to this PR.

ℹ️ If this comment appears to be left in error, double check that the flagged code is actually used and/or make sure your branch is up-to-date with master.