Latest 1.0.2
Homepage https://github.com/Minitour/EasySocialButton
License MIT
Platforms ios 9.0
Authors

An easy way to create beautiful social authentication buttons

Screenshots


Installation

Cocoa Pods

pod 'EasySocialButton'

Manual

Drag and drop AZSocialButton.swift to your project.

Usage

Interface Builder

Simply add a UIButton, and in the Identity Inspector change the class to AZSocialButton.

Programmatically

let socialButton = AZSocialButton(frame: CGRect(x: 20, y: 20, width: 200, height: 40))

socialButton.animateInteraction = true
socialButton.useCornerRadius = true
socialButton.cornerRadius = 5
socialButton.highlightOnTouch = false
socialButton.image = #imageLiteral(resourceName: "ic_google")
socialButton.setTitle("Sign in with Google", for: [])
socialButton.setTitleColor(.black, for: [])
socialButton.titleLabel?.font = UIFont.systemFont(ofSize: 15)

socialButton.onClickAction = { (button) in
    print("do social login stuff")
}

view.addSubview(socialButton)

Latest podspec

{
    "name": "EasySocialButton",
    "version": "1.0.2",
    "summary": "An easy way to create beautiful social authentication buttons.",
    "homepage": "https://github.com/Minitour/EasySocialButton",
    "license": "MIT",
    "authors": {
        "Antonio Zaitoun": "[email protected]"
    },
    "platforms": {
        "ios": "9.0"
    },
    "source": {
        "git": "https://github.com/Minitour/EasySocialButton.git",
        "tag": "1.0.2"
    },
    "source_files": "Sources/**/*.{swift}",
    "pushed_with_swift_version": "4.0"
}

Pin It on Pinterest

Share This