BaconIpsum 1.1.0

BaconIpsum 1.1.0

Maintained by Adam Ware.



🥓 BaconIpsum for Swift 🥓

Version License Platform

Introduction

A Swift library to create awesome pork flavoured Lorem Ipsum placeholder text in your IOS apps. Fill your app and life with Pork! This library generates pork related text for use as placeholder text. Also now includes vegetarian option!

Installation

BaconIpsum is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'BaconIpsum'

Dont forget to Import it into your project (when using the pod).

import BaconIpsum

Or manually drop the BaconIpsum.swift file into your project.

Getting that porky goodness

This will simply return a single pork related word.

let myText = BaconIpsum.giveMeBacon()
// returns a string

Add a switch for vegetarian option!

let myText = BaconIpsum.giveMeBacon(vegetarian: true) // defaults to false
// returns a vegetarian string

Want a number of 🐷 words ?

let myText = BaconIpsum.giveMeBacon(withWords: 4)

Want a full sentence ?

let myText = BaconIpsum.giveMeBacon(withSentences: 2)

Maybe the whole hog 🐖 is what you are after ?

let myText = BaconIpsum.giveMeBacon(withParagraphs: 4)

Contribute

Yaass, please do! #nutmeatIpsum?

Author

Adam Ware, [email protected]

License

BaconIpsum is available under the MIT license. See the LICENSE file for more info.