In the early stage of iOS development, we may need some mocking data or generated data to feed UI. And there are some awesome JS libraries which we can leverage to speed up iOS development. In this story, I will take faker.js as an example to show you how to leverage JS code in Swift.
What is faker.js
faker.js — generate massive amounts of fake data in the browser and node.js
faker.js is a great collection of common data, such as country, user name, email, avatar…