Swiftpack.co -  artisanofcode/swift-taylor as Swift Package
Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
artisanofcode/swift-taylor
Taylor makes beautiful words happen, a Lorem Ipsum generator for Swift.
.package(url: "https://github.com/artisanofcode/swift-taylor.git", from: "0.0.1")

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.

GitHub

link
Stars: 0
Last commit: 3 days ago

Ad: Job Offers

iOS Software Engineer @ Perry Street Software
Perry Street Software is Jack’d and SCRUFF. We are two of the world’s largest gay, bi, trans and queer social dating apps on iOS and Android. Our brands reach more than 20 million members worldwide so members can connect, meet and express themselves on a platform that prioritizes privacy and security. We invest heavily into SwiftUI and using Swift Packages to modularize the codebase.

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API