GithubHelp home page GithubHelp logo

tchigher / gradients Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gradients/gradients

0.0 0.0 0.0 1.42 MB

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

License: MIT License

Swift 96.63% Ruby 2.46% Objective-C 0.91%

gradients's Introduction

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.

gradients's People

Contributors

cruisediary avatar zenbhang avatar kennydang avatar kawoou avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    πŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. πŸ“ŠπŸ“ˆπŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.