New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

github.com/gradients/gradients

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/gradients/gradients

  • v0.0.0-20221113014530-0ec91855a90e
  • Source
  • Go
  • Socket score

Version published
Created
Source

Gradients

🌔 A curated collection of 180 splendid gradients made in swift

logo

Awesome Swift Swift Package Manager Version License Platform Carthage compatible

180 splendid Gradients inspired by itmeo/webgradients View all the gradients here »

🏄🏼 Easy To Use

view.layer.addSubLayer(Gradients.deepBlue.layer)
180+ Gradients
public enum Gradients: Int, CaseIterable {
    case warmFlame = 1
    case nightFade
    case springWarmth
    case juicyPeach
    //...
    case fabledSunset
    case perfectBlue
}
Direction
public enum Direction {
    case top
    case left
    case right
    case bottom
    case degree(CGFloat)
}

🎨 Customize

customize

// degree for radian direction supported
let customLayer = Gradients.linear(to: .degree(-225), colors: [0x231557, 0x44107A, 0xFF1361, 0xFFF800], locations: [0.0, 0.29, 0.67, 1.0]) // Fabled Sunset
view.layer.addSubLayer(customLayer)

Examples

  • Comets: ☄️Comets: Animating Particles in Swift.
  • DeliTodo: Todo application for iOS using Deli.

Requirements

Gradients is written in Xcode 10, Swift 4+, iOS 9.0+ Required

📲 Installation

Gradients is available through Swift Package Manager, Cocoapods or Carthage

dependencies: [
    .package(url: "https://github.com/Gradients/Gradients.git", .upToNextMajor(from: "0.3.1"))
]

Cocoapods

pod "Gradients"

Carthage

github "cruisediary/Gradients" ~> 0.3.1

❤️ Contribution

Pull requests are always welcomed 🏄🏼

Awesome

  • awesome-swift - A collaborative list of awesome Swift libraries and resources. Feel free to contribute!
  • awesome-gradient - 🌈 A curated list of awesome Gradient frameworks, libraries and software and resources

👨‍💻 Author

cruz, cruzdiary@gmail.com

🛡 License

Gradients is available under the MIT license. See the LICENSE file for more info.

FAQs

Package last updated on 13 Nov 2022

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc