A Swift library for generating realistic fake data, useful for testing and populating databases during development.
Fakery is a Swift library that generates fake data for testing and development purposes. It creates realistic, locale-specific dummy data such as names, addresses, emails, and product names, solving the problem of using meaningless random strings in development workflows.
Swift developers building iOS, macOS, or server-side applications who need dummy data for testing, database population, or prototyping.
Developers choose Fakery for its comprehensive locale support, realistic data generation, and easy integration as a Swift port of the popular Ruby Faker library, making it a trusted tool for Swift projects.
:alien: Swift fake data generator
Open-Awesome is built by the community, for the community. Submit a project, suggest an awesome list, or help improve the catalog on GitHub.
Supports over 20 locales with English fallback, enabling culturally appropriate fake data for international apps, as shown in the usage example with Norwegian locale.
Includes generators for address, commerce, internet, and more, covering common testing needs with realistic values like product names and emails.
Offers easy integration with methods like faker.name.firstName(), making it straightforward to use in Swift projects without complex setup.
Allows custom locales by adding JSON files to the resources directory, enhancing flexibility for specific data requirements.
The README explicitly states returned values are not guaranteed to be unique, which can break tests relying on distinct data.
As a Swift port, it's unsuitable for projects using other programming languages, forcing teams to find alternatives for cross-platform needs.
Includes JSON files for locales that can unnecessarily increase app bundle size if not carefully managed or pruned during builds.