Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/Minitour/EasySocialButton
An easy way to create beautiful social authentication buttons
https://github.com/Minitour/EasySocialButton
Last synced: 7 days ago
JSON representation
An easy way to create beautiful social authentication buttons
- Host: GitHub
- URL: https://github.com/Minitour/EasySocialButton
- Owner: Minitour
- License: mit
- Created: 2017-04-15T17:41:28.000Z (over 7 years ago)
- Default Branch: master
- Last Pushed: 2017-11-04T19:42:39.000Z (about 7 years ago)
- Last Synced: 2024-11-08T03:03:57.068Z (about 1 month ago)
- Language: Swift
- Size: 4.68 MB
- Stars: 160
- Watchers: 8
- Forks: 11
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
- awesome-ios - EasySocialButton - An easy way to create beautiful social authentication buttons. (UI / Button)
- awesome-ios-star - EasySocialButton - An easy way to create beautiful social authentication buttons. (UI / Button)
- awesome-swift-lib-hunt - EasySocialButton - Easy to use and beautiful customizable button (UI)
- awesome-swift-lib-hunt - EasySocialButton - Easy to use and beautiful customizable button (UI)
README
# EasySocialButton
An easy way to create beautiful social authentication buttons## Screenshots
## Installation
### Cocoa Pods
```bash
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
```swift
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)
```