Awesome Open Source
Awesome Open Source

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

Cocoapods

pod "Gradients"

Carthage

github "cruisediary/Gradients" ~> 0.3.0

โค๏ธ 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, [email protected]

๐Ÿ›ก License

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


Get A Weekly Email With Trending Projects For These Topics
No Spam. Unsubscribe easily at any time.
swift (7,689)ย 
ios (3,579)ย 
ui (1,017)ย 
cocoapods (565)ย 
design (377)ย 
carthage (325)ย 
swift4 (177)ย 
ux (136)ย 
gradient (59)ย 
palette (52)ย 
layer (27)ย