Giter VIP home page Giter VIP logo

baconipsum's Introduction

๐Ÿฅ“ 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.

baconipsum's People

Contributors

tuppaware avatar adamware avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.