Skip to content

Commit

Permalink
Merge pull request #256 from nickgrier/patch-2
Browse files Browse the repository at this point in the history
Update CardPartHistogramView.swift fix spacing parentheses
  • Loading branch information
badrinathvm authored Aug 3, 2020
2 parents f08cebb + d340377 commit d8a4c72
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -162,7 +162,7 @@ public class CardPartHistogramView: UIView, CardPartView {
func computeSpacing(dataEntries: [DataEntry]) -> CGFloat {
scrollView.layoutIfNeeded()
let divideCount = dataEntries.count > 1 ? (CGFloat(dataEntries.count) - 1) : 1
return (scrollView.bounds.width - (CGFloat(dataEntries.count) * width) / divideCount)
return (scrollView.bounds.width - (CGFloat(dataEntries.count) * width)) / divideCount
}
}

Expand Down

0 comments on commit d8a4c72

Please sign in to comment.