Coder Social home page Coder Social logo

tommyz / gradients Goto Github PK

View Code? Open in Web Editor NEW

This project forked from gradients/gradients

0.0 2.0 0.0 1.4 MB

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

License: MIT License

Ruby 2.59% Objective-C 0.95% Swift 96.46%

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 = 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

  • 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, [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

Watchers

tommyz avatar James Cloos 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.