🎨 :: Formatted code with updated dependencies

This commit is contained in:
Felix Mau
2019-04-05 21:52:50 +13:00
committed by Felix M
parent 5b416004c3
commit f3ccf063d2
2 changed files with 2 additions and 2 deletions
@@ -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)
}