Skip to content

Commit

Permalink
Merge pull request #31 from vveltri/feature/circleIconsOnMLBusinessDi…
Browse files Browse the repository at this point in the history
…scountBoxView

Feature/circle icons on ml business discount box view
  • Loading branch information
juansanzone authored Oct 31, 2019
2 parents 69f6435 + c1eeae0 commit 1e52e06
Show file tree
Hide file tree
Showing 3 changed files with 8 additions and 3 deletions.
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,8 @@
# v1.4
🚀 1.4 🚀
- Modified iconCornerRadius on MLBusinessDiscountSingleItemView to 28 in order to make circle icons. Changed icon contentMode to scaleAspectFill.
- Adjust the size of the Ring view.

# v1.3
🚀 1.3 🚀
- Discount Box component 3 layout. (With title and subtitle, with title and without title/subtitle)
Expand Down
2 changes: 1 addition & 1 deletion MLBusinessComponents.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = "MLBusinessComponents"
s.version = "1.3"
s.version = "1.4"
s.summary = "MLBusinessComponents for iOS"
s.homepage = "https://www.mercadolibre.com"
s.license = { :type => "MIT", :file => "LICENSE" }
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import MLUI
final class MLBusinessDiscountSingleItemView: UIView {
static let itemHeight: CGFloat = 104
static let iconImageSize: CGFloat = 56
private let iconCornerRadius: CGFloat = 6
private let iconCornerRadius: CGFloat = 28
private let discountSingleItem: MLBusinessSingleItemProtocol
private var itemIndex: Int = 0
private var itemSection: Int = 0
Expand Down Expand Up @@ -52,7 +52,7 @@ extension MLBusinessDiscountSingleItemView {
})

self.addSubview(icon)
icon.contentMode = .scaleAspectFit
icon.contentMode = .scaleAspectFill
NSLayoutConstraint.activate([
icon.heightAnchor.constraint(equalToConstant: MLBusinessDiscountSingleItemView.iconImageSize),
icon.widthAnchor.constraint(equalToConstant: MLBusinessDiscountSingleItemView.iconImageSize),
Expand Down

0 comments on commit 1e52e06

Please sign in to comment.