Generate a Random Word in Swift

后端 未结 2 1650
终归单人心
终归单人心 2021-01-06 03:30

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

2条回答
  •  爱一瞬间的悲伤
    2021-01-06 04:12

    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

提交回复
热议问题