Latest 0.1.0
Homepage https://github.com/yveslym/UserGenerator
License MIT
Platforms ios 10.0
Authors

USER GENERATOR

User generator is an awesome pod that help you to create 1 to infinite number of user
with address, bank account, and profile image url within a single line of code.

Model:

User:

     firstName: String
     lastName: String
     email: String
     id: String
     title: String
     phoneNumber: String
     headline: String
     password: String
     username: String
     profilePic: String
     creditCard : [BankAccount]
     address = Address()
     prefix: String

Address:

     city: String?
     zipCode: Int?
     street: String?
     state: String?
     longitude: Double?
     latitude: Double?
     country: String?

Bank:

     CarNumber: String
     CardType: String
     expirationDate: Date

use case:

Generate single user

let user = User() //==> generate a new user

Generate single address

 let address = Address() //==> generate new address

Generate single credit card

let debit = BankAccount()

Generate multiple user

use a real coordinate to get address in a radius region

User.generateMultipleUser(number: 100, longitude: -122.40641700, latitude: 37.78583399, radius: 300) { (users) in
            print(users)
        }

Generate multiple address

Address.generateMultipleAddress(number: 65, longitude:  -122.40641700, latitude: 37.78583399, radius: 350) { (addresses) in
            print(addresses)
        }

Install:

pod 'userGenerator'

Credit:

My pod use Fakery pod to create those dummy data, if you want more freedom, you can always visit their repository

Latest podspec

{
    "name": "userGenerator",
    "version": "0.1.0",
    "summary": "with one line of code, genrate genrate infinite number of user you want for testing",
    "description": "This pod, user generator help you to test your app by populatiing with multiple users within a single line. Also, you can give a geo location and get addresses arround that location.",
    "homepage": "https://github.com/yveslym/UserGenerator",
    "license": {
        "type": "MIT",
        "file": "LICENSE"
    },
    "authors": {
        "": ""
    },
    "source": {
        "git": "https://github.com/yveslym/UserGenerator.git",
        "tag": "0.1.0"
    },
    "platforms": {
        "ios": "10.0"
    },
    "source_files": "UserGenerator/*"
}

Pin It on Pinterest

Share This