Skip to content

[FEATURE] Single-color argument support #2

@CypherPoet

Description

@CypherPoet

Is your feature request related to a problem? Please describe.

Currently each modifier is calling to SwiftUI's Gradient under the hood. Because Gradient needs to be called with an array of more than one color, using one "start" and one "end" color doesn't work:

RoundedRectangle(cornerRadius: 24)
    .animatableAngularGradient(
          startColors: [.systemRed],
          endColors: [.systemBlue],
           completionPercentage: animationCompletion
)

Describe the solution you'd like.

It would be nice to support this by just animating a single Color instead of a Gradient.

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions