Skip to content

Commit

Permalink
Attempt To Fix #11
Browse files Browse the repository at this point in the history
  • Loading branch information
Lakr233 committed Aug 29, 2024
1 parent 213ea47 commit 9e29730
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
2 changes: 1 addition & 1 deletion Package.swift
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ let package = Package(
dependencies: [
.package(url: "https://github.com/Lakr233/ColorVector.git", from: "1.0.3"),
.package(url: "https://github.com/Lakr233/SpringInterpolation.git", from: "1.2.2"),
.package(url: "https://github.com/Lakr233/MSDisplayLink.git", from: "1.0.0"),
.package(url: "https://github.com/Lakr233/MSDisplayLink.git", from: "1.1.0"),
],
targets: [
.target(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,13 +60,12 @@ public extension AnimatedMulticolorGradientView {
}

public extension AnimatedMulticolorGradientView {

func setColors(_ preset: ColorfulPreset, animated: Bool = true, repeats: Bool = true) {
setColors(preset.colors.map { ColorVector(ColorElement($0)) },
animated: animated,
repeats: repeats)
}

func setColors(_ colors: [ColorVector], animated: Bool = true, repeats: Bool = true) {
var colors = colors
if colors.isEmpty { colors.append(.init(v: .zero, space: .lab)) }
Expand Down

0 comments on commit 9e29730

Please sign in to comment.