Latest 0.1.0
Homepage https://github.com/quanvo87/ViewGlower
License MIT
Platforms ios 8.0
Authors

Make any UIView glow ✨

Version
License
Platform

Example

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

Requirements

Swift 4

Installation

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

pod 'ViewGlower'

Usage

Import the framework:

import ViewGlower

Initialize an instance of ViewGlower:

class ViewController: UIViewController {
    let viewGlower = ViewGlower()

    ...
}

Pass it a UIView:

let barButton: UIBarButtonItem!
let button: UIButton!

...

viewGlower.glow(barButton.customView)

viewGlower.glow(button.imageView)

Note: Calling glow() in viewDidLoad() does not work.

Customize

func glow(_ view: UIView?,
      color: UIColor = UIColor.white,
      from: CGFloat = 0,
      to: CGFloat = 0.9,
      duration: CFTimeInterval = 1,
      shouldRepeat: Bool = true)

Stop glowing

func stopGlowing(_ view: UIView?)

Acknowledgements

Modified from https://github.com/thesecretlab/UIView-Glow.

Icon in example from https://www.shareicon.net/cute-emoticons-emoji-feelings-smileys-847494.

Author

quanvo87, [email protected]

License

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

Latest podspec

{
    "name": "ViewGlower",
    "version": "0.1.0",
    "summary": "Make any UIView glow u2728",
    "description": "UIView, UIButton, UIBarButton, UIImage, button, bar button, image, animate, glow",
    "homepage": "https://github.com/quanvo87/ViewGlower",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "quanvo87": "[email protected]"
    },
    "source": {
        "git": "https://github.com/quanvo87/ViewGlower.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source_files": "ViewGlower/Classes/**/*",
    "pushed_with_swift_version": "4.0.3"
}

Pin It on Pinterest

Share This