Latest 0.0.3
Homepage https://github.com/comyarzaheri/Glisten
License MIT
Platforms ios 8.0, requires ARC
Authors

Overview

Version
Carthage compatible
[Platform]()
License

Glisten is a simple UIView extension that allows you to add a highlight on top of views. The recommended use case for Glisten is when you’re attempting to add a subtle, white highlight to a view with rounded corners and you’re not satisfied with just a straight line.

How does it look?

The effect is subtle, but notice how the highlight partially follows the rounded corners of our view:

The line width and color are configurable, so you can make it more or less dramatic. Glisten also works for straight-edged views though that use case isn’t particularly interesting.

Usage

CocoaPods

Add the following to your Podfile:

pod 'Glisten'
Carthage

Add the following to your Cartfile:

github "comyarzaheri/Glisten" "master"

Using Glisten

import Glisten

// Set the default glisten
view.glisten() 

// Or use the following to configure the highlight more precisely:
view.glisten(cornerRadius: 8.0, lineWidth: 2.0, color: UIColor.whiteColor())

Requirements

  • iOS 8.0 or higher

License

Glisten is available under the MIT License.

Contributors

Latest podspec

{
    "name": "Glisten",
    "version": "0.0.3",
    "summary": "Who left the cap off my [bleeping] Glisten!?",
    "homepage": "https://github.com/comyarzaheri/Glisten",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "Comyar Zaheri": ""
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/comyarzaheri/Glisten.git",
        "tag": "0.0.3"
    },
    "source_files": "Glisten/*.swift",
    "requires_arc": true,
    "module_name": "Glisten"
}

Pin It on Pinterest

Share This