Skip to content

Commit

Permalink
Fixed UIViewAlertForUnsatisfiableConstraints issue when LinearProgres…
Browse files Browse the repository at this point in the history
…sView has initially smaller height.
  • Loading branch information
OrkhanAlikhanov committed Apr 12, 2017
1 parent a47d919 commit 131a787
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions Source/LinearProgressView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -98,6 +98,7 @@ open class LinearProgressView: UIView {
NSLayoutConstraint(item: trackView, attribute: .bottom, relatedBy: .equal, toItem: self, attribute: .bottomMargin, multiplier: 1.0, constant: 0),
trackViewWidthConstraint
])
self.layoutMargins = .zero
}

open func setProgress(_ value: Float, animated: Bool) {
Expand Down

0 comments on commit 131a787

Please sign in to comment.