πŸŒ” A curated collection of splendid 180+ gradients made in swift
Branch: master
Clone or download
Latest commit d031b05 Feb 9, 2019
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
Gradients.xcodeproj Fix Carthage supporting 0.2.x Oct 13, 2018
Gradients Alpha assert is wrong Feb 2, 2019
GradientsTests Fix Carthage supporting 0.2.x Oct 13, 2018
README Update README.md Oct 8, 2018
.gitignore Initial commit Sep 26, 2018
.swift-version Support Swift 4.2 Sep 30, 2018
Gradients.podspec Bumping version to 0.2.1 Oct 13, 2018
LICENSE Changed (c) to Β© Oct 4, 2018
README.md Add example 'Comets' Oct 21, 2018

README.md

Gradients

πŸŒ” A curated collection of 180 splendid gradients made in swift

logo

Awesome Swift 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 = 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 Cocoapods or Carthage

Cocoapods

pod "Gradients"

Carthage

github "cruisediary/Gradients" ~> 0.2.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.