Skip to content

artisanofcode/swift-taylor

main
Switch branches/tags

Name already in use

A tag already exists with the provided branch name. Many Git commands accept both tag and branch names, so creating this branch may cause unexpected behavior. Are you sure you want to create this branch?
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

Taylor.swift

Taylor makes beautiful words happen, a Lorem Ipsum generator for Swift.

πŸ›  Installing

Swift Package Manager

Please see see the WWDC presentation 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.

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.

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.

let one = Taylor.paragraph()
let ten = Taylor.paragraphs(10)
let fiveToTen = Taylor.paragraphs(5...10)

Titles

Generate a capitalised title.

let title = Taylor.title()

βš–οΈ Licence

This project is licensed under the MIT licence.

All documentation and images are licenced under the Creative Commons Attribution-ShareAlike 4.0 International License.

πŸ“ Meta

This project uses Semantic Versioning.

About

Taylor makes beautiful words happen, a Lorem Ipsum generator for Swift.

Topics

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages