File tree Expand file tree Collapse file tree 4 files changed +13
-1
lines changed
Resources/Images.xcassets/icon-card.imageset
WooCommerceTests/Extensions Expand file tree Collapse file tree 4 files changed +13
-1
lines changed Original file line number Diff line number Diff line change @@ -416,6 +416,14 @@ extension UIImage {
416416 . imageFlippedForRightToLeftLayoutDirection ( )
417417 }
418418
419+ /// Credit card
420+ ///
421+ static var creditCardIcon : UIImage {
422+ return UIImage ( named: " icon-card " ) !
423+ . withRenderingMode ( . alwaysTemplate)
424+ . imageFlippedForRightToLeftLayoutDirection ( )
425+ }
426+
419427 /// Files Download Icon
420428 ///
421429 static var cloudImage : UIImage {
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change @@ -528,8 +528,12 @@ final class IconsTests: XCTestCase {
528528 func test_lightningImage_is_not_nil( ) {
529529 XCTAssertNotNil ( UIImage . lightningImage)
530530 }
531-
531+
532532 func test_shoppingCartIcon_is_not_nil( ) {
533533 XCTAssertNotNil ( UIImage . shoppingCartIcon)
534534 }
535+
536+ func test_creditCardIcon_is_not_nil( ) {
537+ XCTAssertNotNil ( UIImage . creditCardIcon)
538+ }
535539}
You can’t perform that action at this time.
0 commit comments