This is a Swift port of Ruby's Faker library that generates fake data.
Are you still bothered with meaningless randomly character strings? Just relax and leave this job to Fakery.
It's useful in all the cases when you need to use some dummy data for testing, population of database during development, etc.
NOTE: Generated data is pretty realistic, supports a range of locales, but returned values are not guaranteed to be unique.
Usage
Localization
Fakery is quite powerful when it comes to generation of locale-specific data.
In Resources/Locales
you can find JSON files for more than 20 locales, and, of course, it's not a limit.
Feel free to contribute and add more!
The default locale is English. When you use one of the available generators and
the corresponding key is not found in a JSON file for the currently selected
locale Fakery will also check if it exists in "en.json" file.
Generators
Address
App
Business
Cat
Commerce
Company
Zelda
Gender
Internet
Lorem
Name
Number
Phone number
Team
Bank
Hobbit
Car
Programming language
Vehicle
Ham
House
Installation
Fakery is available through CocoaPods. To install
it, simply add the following line to your Podfile:
Or alternatively using the Swift Package Manager:
Use of the Swift Package Manager requires Swift >=5.3.
Contributing
Please see our playbook for guidelines on contributing.
Author
Vadym Markov, markov.vadym@gmail.com
License
Fakery is available under the MIT license. See the LICENSE file for more info.