MulticolorGradient

0.1.1

A SwiftUI implementation of multiple color gradient (like mesh gradient) 🌈
ArthurGuibert/SwiftUI-MulticolorGradient

What's New

v0.1.1

2023-05-09T19:50:14Z

Add support for more GPU family

SwiftUI-MulticolorGradient

A SwiftUI implementation of multiple color gradient. Like mesh gradient, but with a simpler and a more declarative way to build it 🌈

Usage

You can use it as a regular SwiftUI view:

MulticolorGradient {
   ColorStop(position: .top, color: .red)
   ColorStop(position: .bottomLeading, color: .blue)
   ColorStop(position: .topTrailing, color: .green)
}

You can add up to 8 color stops (or points). Animations have a basic support: only linear animations are supported for now.

Installation

Swift Package Manager

dependencies: [
    .package(url: "https://github.com/ArthurGuibert/SwiftUI-MulticolorGradient.git")
]

Requirements

  • iOS 15.0+
  • Xcode 14+

Description

  • Swift Tools 5.7.0
View More Packages from this Author

Dependencies

  • None
Last updated: Thu Apr 25 2024 12:38:42 GMT-0900 (Hawaii-Aleutian Daylight Time)