🎨 :: Formatted code with updated dependencies

This commit is contained in:
Felix Mau authored and Felix M committed 2019-04-05 21:52:50 +13:00
1 parent 5b416004c3
commit f3ccf063d2
2 files changed
+2 -2

No files matched your search

@@ -163,7 +163,7 @@ extension GradientLoadingBarController {
onView superview: UIView? = nil) {
self.init(height: height,
durations: durations,
gradientColorList: gradientColors.map({ UIColor(cgColor: $0) }),
gradientColorList: gradientColors.map { UIColor(cgColor: $0) },
onView: superview)
}
@@ -91,7 +91,7 @@ public final class GradientView: UIView {
reversedColorList.removeLast()
let infinteColorList = gradientColorList + reversedColorList + gradientColorList
gradientLayer.colors = infinteColorList.map({ $0.cgColor })
gradientLayer.colors = infinteColorList.map { $0.cgColor }
layer.insertSublayer(gradientLayer, at: 0)
}