Latest 1.0.2
Homepage https://github.com/lurado/LDOGradientView
License MIT
Platforms ios 8.0
Authors

Version
License
Platform

LDOGradientView demo

Usage

let gradientView = LDOGradientView()
gradientView.rotation = CGFloat(45)
gradientView.startColor = .red
gradientView.endColor = .yellow
gradientView.startOffset = 0.2
gradientView.endOffset = 0.5

While easy to use from code, you’ll probably want to configure it in Interface Builder.

LDOGradientView demo

While LDOGradientView uses IBInspectable it does not support IB_DESIGNABLE, because it seems that Interface Builder still struggles rendering those views properly.

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

Installation

LDOGradientView is available through CocoaPods. To install
it, simply add the following line to your Podfile:

pod 'LDOGradientView'

Author

Raschke & Ludwig GbR, https://www.lurado.com/

License

LDOGradientView is available under the MIT license.
See the LICENSE file for more information.

Latest podspec

{
    "name": "LDOGradientView",
    "version": "1.0.2",
    "summary": "A simple but flexible gradient view with Interface Builder support.",
    "description": "Draws a gradient between two colors. Direction, start and end offset are configurable.nAll options are IBInspectable and can be modified in Interface Builder.",
    "homepage": "https://github.com/lurado/LDOGradientView",
    "screenshots": "https://github.com/lurado/LDOGradientView/blob/master/Screenshots/LDOGradientView.png?raw=true",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Julian Raschke und Sebastian Ludwig GbR": "[email protected]"
    },
    "source": {
        "git": "https://github.com/lurado/LDOGradientView.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "LDOGradientView/Classes/**/*"
}

Pin It on Pinterest

Share This