Skip to content

Instantly share code, notes, and snippets.

@KentarouKanno
Last active August 24, 2016 19:36
Show Gist options
  • Save KentarouKanno/b57e8de513dbbd12f93296e1163ee0f3 to your computer and use it in GitHub Desktop.
Save KentarouKanno/b57e8de513dbbd12f93296e1163ee0f3 to your computer and use it in GitHub Desktop.
FlatUIKit

FlatUIKit

Grouper/FlatUIKit

★ Podfile

pod 'FlatUIKit'

★ Bridging-Header.h

#import <FlatUIKit/FlatUIKit.h>
import UIKit

class ViewController: UIViewController {

    override func viewDidLoad() {
        super.viewDidLoad()
        
        let  button = FUIButton(frame: CGRect(x: 50, y: 250, width: 100, height: 50))
        button.buttonColor = UIColor.turquoiseColor()
        button.shadowColor = UIColor.greenSeaColor()
        button.shadowHeight = 3.0
        button.cornerRadius = 6.0
        button.setTitle("FlatButton", forState: .Normal)
        button.titleLabel!.font = UIFont.boldSystemFontOfSize(16)
        button.setTitleColor(UIColor.cloudsColor(), forState: .Normal)
        button.setTitleColor(UIColor.cloudsColor(), forState: .Highlighted)
        view.addSubview(button)

    }
}

a

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment