👤 Framework to Generate Random Users - An Unofficial Swift SDK for randomuser.me
Switch branches/tags
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
.github
Assets Added documentation and README.md Oct 11, 2016
RandomUserSwift.xcodeproj
RandomUserSwift
RandomUserSwiftTests Added testing and travis/codecov integrations (#19) Aug 30, 2018
docs Regen jazzy docs [ci skip] Sep 28, 2018
.codecov.yml Manually generated jazzy docs and removed nonexistent file from codec… Aug 29, 2018
.gitignore
.jazzy.yml
.swift-version Updated to Swift 4 Apr 27, 2018
.swiftlint.yaml
.travis.yml Added testing and travis/codecov integrations (#19) Aug 30, 2018
CONTRIBUTING.md
Dangerfile
Gemfile Added testing and travis/codecov integrations (#19) Aug 30, 2018
LICENSE
README.md Added testing and travis/codecov integrations (#19) Aug 30, 2018
RandomUserSwift.podspec 0.2.0 Aug 30, 2018

README.md

Build Status codecov doccov CocoaPods Version Status Carthage compatible CocoaPods CocoaPods Platform Swift MIT License

RandomUserSwift is an easy to use Swift framework that provides the ability to generate random users and their accompanying data for your Swift applications. It utilizes randomuser.me API to generate the data.

  1. Integration
  2. Usage
  3. License

Integration

CocoaPods

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

target 'MyApp' do
	pod 'RandomUserSwift'
end

Carthage

You can use Carthage to install RandomUserSwift by adding it to your Cartfile:

github "dingwilson/RandomUserSwift"

Usage

Import the framework

import RandomUserSwift

Then, use the getUsers function via the shared singleton with a completion handler.

RandomUser.shared.getUsers { data, error in
    guard let data = data else { return }

    print(data)
}

For more information on the configuration and returned values, check out the RandomUserSwift documentation or RandomUser official documentation

License

RandomUserSwift is released under an [MIT License][mitLink]. See LICENSE for details.

Copyright © 2016-present Wilson Ding.

Please provide attribution, it is greatly appreciated.