Latest 1.1
Homepage https://github.com/igormatyushkin014/Degree
License MIT
Platforms ios 9.0
Authors

Degree


Degree


Degree


Degree


Degree

At a Glance

Degree is a tool for making gradient in Swift.

How To Get Started

  • Copy content of Source folder to your project.

or

  • Use Degree cocoapod

Requirements

  • iOS 9 and later
  • Xcode 9 and later
  • Swift 4

Usage

Example of usage:

let gradientView = GradientView()
gradientView.gradient = Gradient.make
    .from(
        x: .left,
        y: .top
    )
    .to(
        x: .right,
        y: .bottom
    )
    .step(withColor: .white, andLocation: 0.0)
    .step(withColor: .orange, andLocation: 0.5)
    .step(withColor: .purple, andLocation: 1.0)
    .get

Each step is defined by its color and location, which is a Float value from 0.0 to 1.0.

License

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

Latest podspec

{
    "name": "Degree",
    "version": "1.1",
    "summary": "Gradient made in Swift",
    "description": "Provides developer with set of classes for making gradients.",
    "homepage": "https://github.com/igormatyushkin014/Degree",
    "screenshots": "https://github.com/igormatyushkin014/Degree/raw/master/Images/logo_2048_800.png",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Igor Matyushkin": "[email protected]"
    },
    "social_media_url": "https://twitter.com/imatyushkin1",
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/igormatyushkin014/Degree.git",
        "tag": "1.1"
    },
    "source_files": [
        "Source",
        "Source/**/*"
    ],
    "swift_version": "4.0"
}

Pin It on Pinterest

Share This