目录
目录README.md

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+
关于
60.0 KB
邀请码
    Gitlink(确实开源)
  • 加入我们
  • 官网邮箱:gitlink@ccf.org.cn
  • QQ群
  • QQ群
  • 公众号
  • 公众号

©Copyright 2023 CCF 开源发展委员会
Powered by Trustie& IntelliDE 京ICP备13000930号