EasySocialButton
  • November 10, 2023

An easy way to create beautiful social authentication buttons

Screenshots


Installation


CocoaPods

 

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)

GitHub


View Github

#authentication #ios #swift #uibutton
YOU MIGHT ALSO LIKE...
CameraBackground

Features Both front and back camera supported. Flash modes: auto, on, off. Countdown timer. Tap to focus. Pinch to zoom. Usage  

DKCamera

Description A light weight & simple & easy camera for iOS by Swift. It uses CoreMotion framework to detect device orientation, so ...

HorizonSDK-iOS

Horizon SDK is a state of the art real-time video recording / photo shooting iOS library. Some of the features ...

LLSimpleCamera

LLSimpleCamera: A simple customizable camera - video recorder control LLSimpleCamera is a library for creating a customized camera - video ...

RSBarcodes_Swift

RSBarcodes allows you to read 1D and 2D barcodes using the metadata scanning capabilities introduced with iOS 7 and generate ...