How to generate random text, email & color

I introduced you to the main randomizing functions in Swift. In this article we will now use these functions to randomly generate some more complex data which work great if you need to test fake user input in a UITextView, UILabel or CGRect:

  1. a random text of…

An introduction to randomizing functions in Swift

It is often necessary to add some randomness to a Swift application during development. For example if you need to fake data from a user input during a unit test or to display some dynamic placeholder text to get comfortable with your Auto-Layout.

In Swift 2 Apple provides these functions…

Sebastian Kreutzberger

Founder & CEO at SwiftyBeaver. Prior CTO / CEO / founder of several VC-backed companies, including Wunderlist & RhodeCode.

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store