Latest 1.1.0
Homepage https://github.com/dingwilson/RandomUserSwift
License MIT
Platforms ios 8.0
Authors

Build Status
codecov
doccov
CocoaPods Version Status
Carthage compatible
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. See LICENSE for details.

Copyright © 2016-present Wilson Ding.

Please provide attribution, it is greatly appreciated.

Latest podspec

{
    "name": "RandomUserSwift",
    "version": "1.1.0",
    "summary": "Swift Framework to Generate Random Users - An Unofficial SDK for randomuser.me",
    "description": "Swift Framework to Generate Random Users - An Unofficial SDK for randomuser.me.",
    "homepage": "https://github.com/dingwilson/RandomUserSwift",
    "license": "MIT",
    "authors": {
        "Wilson Ding": "[email protected]"
    },
    "platforms": {
        "ios": "8.0"
    },
    "source": {
        "git": "https://github.com/dingwilson/RandomUserSwift.git",
        "tag": "1.1.0"
    },
    "source_files": [
        "RandomUserSwift",
        "RandomUserSwift/**/*.{h,m,swift}"
    ],
    "exclude_files": "Classes/Exclude"
}

Pin It on Pinterest

Share This