Latest 0.2.0
Homepage https://github.com/abring/sample_ios
License MIT
Platforms ios 10.0
Dependencies Alamofire, SwiftyJSON
Authors

License
Platform

Preview

sample_ios

About

Abring makes it easy to implement login to your app.

There are 3 ways you can use Abring

  • Ignore this library and use HTTP APIs
  • Using it by just SDK APIs (UI is by your own)
  • Let SDK handle the UI for you

Requirements

  • iOS 10.0+
  • XCode 8.0
  • Swift 3

Integration

CocoaPods

You can use CocoaPods to install Abring by adding it to your Podfile:

platform :ios, '10.0'
use_frameworks!

target 'MyApp' do
    pod 'Abring'
end

Usage

import Abring

Config the UI in the Appdelegate.swift file

ABAppConfig.name = "your App Id"
ABAppConfig.font = //Customized Font
ABAppConfig.tintColor //Your app tint color
...

and finally add this line of code to present login

presentLogin(style: .LightBlurBackground, delegate: self)

Don’t forget to implement delegate methods

func userDismissScreen()
func userDidLogin(_ player: ABPlayer)

License

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

Latest podspec

{
    "name": "sample_ios",
    "version": "0.2.0",
    "summary": "Abring SDK, pre release.",
    "description": "Abring is an BaaS. In this version it will handle login with phone number. just type 2 lines of code and you're ready to go. for more information please visit our website.",
    "homepage": "https://github.com/abring/sample_ios",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "hosein abbaspoor": "[email protected]"
    },
    "source": {
        "git": "https://github.com/abring/sample_ios.git",
        "tag": "0.2.0"
    },
    "dependencies": {
        "Alamofire": [],
        "SwiftyJSON": []
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": [
        "Abring Demo/ABConfiguration.swift",
        "Abring Demo/ABExtentions.swift",
        "Abring Demo/ABLoginViewController.swift",
        "Abring Demo/ABManager.swift",
        "Abring Demo/ABPlayer.swift",
        "Abring Demo/AbringKit.bundle"
    ],
    "pushed_with_swift_version": "3.0n3.0n3.0"
}

Pin It on Pinterest

Share This