Latest 0.1.0
Homepage https://github.com/mohammadghk/MGK3DButton
License MIT
Platforms ios 8.0
Authors

[Travis]()
Version
License
Platform
Swift

ScreenShot

screenshot

Example

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

also try example Here

Requirements

Xcode 8.3.2
Swift 3.1

Installation

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

pod 'MGK3DButton', :git => 'https://github.com/mohammadghk/MGK3DButton'

Manual Installation is available by copying MGK3DButton.swift file and adding it into your project.

Usage

create an instance of MGK3DButton or drag and drop a UIButton in story board and set it’s custom class to MGK3DButton
then you can simply edit it in IB using IBInspectable variables customColor for button’s background color and customShadowColor for shadow color and highlighted fill color, you can also set button’s text color in IB using titleColor

to setup programatically in your code use : initWith(color : UIColor , shadow : UIColor)

you can also use predefined colors , create an outlet of the button in you code and in your viewDidLoad() simply write:
myButton.color = .green
other options are .orange , .navyBlue , .beige , .white . the default value is .white

if you want to use your custom predefiened color palettes , use manual installation and then edit color enum and replace default values :)

Author

Mohammad Ghasemi Kakroudi, [email protected]

License

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

Latest podspec

{
    "name": "MGK3DButton",
    "version": "0.1.0",
    "summary": "3DButton,Button with Shadow.",
    "description": "An override of UIButton class with 3d Push Effects.",
    "homepage": "https://github.com/mohammadghk/MGK3DButton",
    "license": "MIT",
    "authors": {
        "Mohammad Ghasemi K": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/mohammadghk/MGK3DButton.git",
        "tag": "0.1.0"
    },
    "source_files": "MGK3DButton/Classes/**/*",
    "pushed_with_swift_version": "3.1"
}

Pin It on Pinterest

Share This