https://github.com/artisanofcode/swift-taylor
Taylor makes beautiful words happen, a Lorem Ipsum generator for Swift.
https://github.com/artisanofcode/swift-taylor
lorem lorem-ipsum swift swift-package swift-package-manager
Last synced: 19 days ago
JSON representation
Taylor makes beautiful words happen, a Lorem Ipsum generator for Swift.
- Host: GitHub
- URL: https://github.com/artisanofcode/swift-taylor
- Owner: artisanofcode
- License: mit
- Created: 2019-09-27T06:42:37.000Z (about 6 years ago)
- Default Branch: main
- Last Pushed: 2021-05-02T10:17:56.000Z (over 4 years ago)
- Last Synced: 2025-06-20T16:51:45.565Z (4 months ago)
- Topics: lorem, lorem-ipsum, swift, swift-package, swift-package-manager
- Language: Swift
- Homepage:
- Size: 11.7 KB
- Stars: 2
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- Funding: .github/FUNDING.yml
- Code of conduct: CODE_OF_CONDUCT.md
Awesome Lists containing this project
README
# Taylor.swift
Taylor makes beautiful words happen, a Lorem Ipsum generator for Swift.
## 🛠 Installing
### Swift Package Manager
Please see see [the WWDC presentation](https://developer.apple.com/videos/play/wwdc2019/408/) for
instructions on using Swift packages in your application.Use `https://github.com/artisanfcode/swift-taylor.git` as url for the `Taylor` package dependency.
## 🎓 Usage
Taylor provides static methods for generating different types of text.
### Words
Generate lowercase words of either a fixed or random length seperated by a space.
```swift
let one = Taylor.word()
let ten = Taylor.words(10)
let fiveToTen = Taylor.words(5...10)
```### Sentences
Generate capitalised sentences of either fixed or random length, each ending in a period.
```swift
let one = Taylor.sentence()
let ten = Taylor.sentences(10)
let fiveToTen = Taylor.sentences(5...10)
```### Paragraphs
Generate paragraphs of sentences, either fixed or random length, each seperated by a newline.
```swift
let one = Taylor.paragraph()
let ten = Taylor.paragraphs(10)
let fiveToTen = Taylor.paragraphs(5...10)
```### Titles
Generate a capitalised title.
```swift
let title = Taylor.title()
```## ⚖️ Licence
This project is licensed under the [MIT licence](http://dan.mit-license.org/).
All documentation and images are licenced under the
[Creative Commons Attribution-ShareAlike 4.0 International License][cc_by_sa].[cc_by_sa]: https://creativecommons.org/licenses/by-sa/4.0/
## 📝 Meta
This project uses [Semantic Versioning](http://semver.org/).