Latest 1.0.2
Homepage https://github.com/mohamede1945/GlowingButton-ObjC
License MIT
Platforms ios 7.0, requires ARC
Authors

CI Status
Version
License
Platform

A custom and simple UIButton subclass that glows when the user is touching down over the button.

Requirements

  • iOS 7.0+ / Mac OS X 10.9+
  • Xcode 6.3

Usage

Interface builder:
  1. Drag and drop a UIButton.
  2. Change the class name to "VAGlowingButton" from identity inspector. Step 2
  3. Choose a glowing color. Step 3
  4. You can see the effect in interface builder by setting the highlight property. IBDesignable
Programmatically:

Alternatively, you can create it from code just as you create a normal UIButton:

VAGlowingButton *button = [VAGlowingButton buttonWithType:UIButtonTypeCustom];
;
 forState:UIControlStateNormal];
button.glowColor = [UIColor yellowColor];

Properties

  • glowColor
    Setting it to nil makes the button behave as normal UIButton.

  • enableDefaultHighlighting
    When set to false, the default UIButton highlighting behavior becomes disabled.
    Default value is false.
    It only works if there is a glow color set to non-nil value.

Screenshots

Normal
Normal
Custom UIButton
Custom
System UIButton
System

Installation

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

pod "VAGlowingButton"

Author

Mohamed Afifi, [email protected]

License

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

Latest podspec

{
    "name": "VAGlowingButton",
    "version": "1.0.2",
    "summary": "Glowing UIButton subclass, glows when tapped.",
    "description": "                       A custom and simple UIButton subclass that glows when the user is touching down over the button.nn",
    "homepage": "https://github.com/mohamede1945/GlowingButton-ObjC",
    "license": "MIT",
    "authors": {
        "Mohamed Afifi": ""
    },
    "source": {
        "git": "https://github.com/mohamede1945/GlowingButton-ObjC.git",
        "tag": "1.0.2"
    },
    "platforms": {
        "ios": "7.0"
    },
    "requires_arc": true,
    "source_files": "Pod/Classes/**/*",
    "resource_bundles": {
        "VAGlowingButton": [
            "Pod/Assets/*.png"
        ]
    }
}

Pin It on Pinterest

Share This