Skip to content

Commit 5487f16

Browse files
committed
Add Plus image.
1 parent cd1cbe1 commit 5487f16

File tree

2 files changed

+10
-0
lines changed

2 files changed

+10
-0
lines changed

WooCommerce/Classes/Extensions/UIImage+Woo.swift

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -300,6 +300,12 @@ extension UIImage {
300300
.imageFlippedForRightToLeftLayoutDirection()
301301
}
302302

303+
/// Plus Icon
304+
///
305+
static var plusImage: UIImage {
306+
return UIImage.gridicon(.plus)
307+
}
308+
303309
/// Search Icon
304310
///
305311
static var searchImage: UIImage {

WooCommerce/WooCommerceTests/Extensions/IconsTests.swift

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,10 @@ final class IconsTests: XCTestCase {
139139
XCTAssertNotNil(UIImage.moreImage)
140140
}
141141

142+
func testPlusImageIconIsNotNil() {
143+
XCTAssertNotNil(UIImage.plusImage)
144+
}
145+
142146
func testPriceImageIconIsNotNil() {
143147
XCTAssertNotNil(UIImage.priceImage)
144148
}

0 commit comments

Comments
 (0)