From f3ccf063d220216cf11cd6cfb18dbf19301a65fe Mon Sep 17 00:00:00 2001 From: Felix Mau Date: Thu, 4 Apr 2019 20:28:00 +1300 Subject: [PATCH] =?UTF-8?q?=F0=9F=8E=A8=20::=20Formatted=20code=20with=20u?= =?UTF-8?q?pdated=20dependencies?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../GradientLoadingBar/GradientLoadingBarController.swift | 2 +- .../Features/GradientLoadingBar/Views/GradientView.swift | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/GradientLoadingBar/Classes/Features/GradientLoadingBar/GradientLoadingBarController.swift b/GradientLoadingBar/Classes/Features/GradientLoadingBar/GradientLoadingBarController.swift index 5ece104..fe40372 100644 --- a/GradientLoadingBar/Classes/Features/GradientLoadingBar/GradientLoadingBarController.swift +++ b/GradientLoadingBar/Classes/Features/GradientLoadingBar/GradientLoadingBarController.swift @@ -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) } diff --git a/GradientLoadingBar/Classes/Features/GradientLoadingBar/Views/GradientView.swift b/GradientLoadingBar/Classes/Features/GradientLoadingBar/Views/GradientView.swift index 1674f58..45b55d3 100644 --- a/GradientLoadingBar/Classes/Features/GradientLoadingBar/Views/GradientView.swift +++ b/GradientLoadingBar/Classes/Features/GradientLoadingBar/Views/GradientView.swift @@ -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) }