mirror of
https://github.com/fxm90/GradientLoadingBar.git
synced 2026-06-16 12:24:31 +00:00
🎨 :: Formatted code with updated dependencies
This commit is contained in:
+1
-1
@@ -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)
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user