Skip to content

Commit

Permalink
Update NHRangeSliderView.swift
Browse files Browse the repository at this point in the history
Modify to fit Swift 4.2.
  • Loading branch information
Kent-Liu authored Jun 17, 2019
1 parent d5e9ebb commit 98e61b5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion NHRangeSlider/NHRangeSlider/NHRangeSliderView.swift
Original file line number Diff line number Diff line change
Expand Up @@ -340,7 +340,7 @@ open class NHRangeSliderView: UIView {
private func estimatelabelSize(font: UIFont,string: String, constrainedToWidth width: Double) -> CGSize{
return string.boundingRect(with: CGSize(width: width, height: DBL_MAX),
options: NSStringDrawingOptions.usesLineFragmentOrigin,
attributes: [NSAttributedStringKey.font: font],
attributes: [NSAttributedString.Key.font: font],
context: nil).size

}
Expand Down

0 comments on commit 98e61b5

Please sign in to comment.