Framework to Generate Random Users

RandomUserSwift

Framework to Generate Random Users - An Unofficial Swift SDK for randomuser.me.

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.

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)
}

GitHub