I am trying to explore the Swift programming language. I was searching through the Swift API and I found the UIReferenceLibraryViewController class. I found the
I suggest you to check this project. A guy have already done the following for you!
LoremSwiftum
LoremSwiftum is a lightweight lorem ipsum generator for iOS written in Swift. It supports generating texts in different formats (words, sentences, paragraphs), miscellaneous data (names, URLs, dates etc.) and placeholder images for iOS (UIImage). This is a reimplementation of the project LoremIpsum written in Objective-C.
https://github.com/lukaskubanek/LoremSwiftum
This project has only single swift file.( ~300 lines) Therefore, I think reading the file will help you.
https://github.com/lukaskubanek/LoremSwiftum/blob/master/Sources/LoremSwiftum.swift