Skip to content

Commit a8eee7f

Browse files
update Gradient Color Cgcolor to uicolor
1 parent c8b4cbd commit a8eee7f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

SSSpinnerButton/SSSpinnerButton/SpinnerButton/SSSpinnerButton.swift

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -98,9 +98,9 @@ open class SSSpinnerButton: UIButton {
9898
}()
9999

100100
/// Sets the colors for the gradient backgorund
101-
public var gradientColors: [CGColor]? {
101+
public var gradientColors: [UIColor]? {
102102
willSet {
103-
gradientLayer.colors = newValue
103+
gradientLayer.colors = newValue?.map({$0.cgColor})
104104
}
105105
}
106106

0 commit comments

Comments
 (0)