Contents

ArthurGuibert/SwiftUI-MulticolorGradient

A SwiftUI implementation of multiple color gradient (like mesh gradient) 🌈

Usage

You can use it as a regular SwiftUI view: ```swift 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+

Package Metadata

Repository: ArthurGuibert/SwiftUI-MulticolorGradient

Stars: 91

Forks: 8

Open issues: 3

Default branch: main

Primary language: swift

License: MIT

Topics: animation, gradient, ios, resultbuilder, swiftui

README: README.md