Swiftpack.co - Package - lukaskubanek/LoremSwiftum

LoremSwiftum

LoremSwiftum is a lightweight lorem ipsum generator for iOS and macOS written in Swift. It supports generating following random texts: words, sentences, paragraphs, titles, names, email addresses, URLs and tweets. Originally, this library was created as a Swift port of LoremIpsum written in Objective-C.

Requirements

  • Swift 4
  • Xcode 9 beta 6
  • iOS 8.0+ / OS X 10.10+

Installation

This library is distributed as a Swift framework and can be integrated into your project in following ways:

Carthage

The easiest way is to use the package manager Carthage.

  1. Add github "lukaskubanek/LoremSwiftum" to your Cartfile.
  2. Run carthage bootstrap.
  3. Drag either the LoremSwiftum.xcodeproj or the LoremSwiftum.framework into your project/workspace and link your target against the LoremSwiftum.framework.
  4. Make sure the framework gets copied to your application bundle.
  5. Import the framework using import LoremSwiftum.

Submodule & Xcode Project

Another option is to use Git submodules and integrating the Xcode project LoremSwiftum.xcodeproj directly to your Xcode workspace.

Usage

import LoremSwiftum

Lorem.word
// => One random word

Lorem.words(3)
// => Three random words

Lorem.sentence
// => One random sentence

Lorem.sentences(3)
// => Three random sentences

Lorem.paragraph
// => One random paragraph

Lorem.paragraphs(3)
// => Three random paragraphs

Lorem.title
// => A random title

Lorem.firstName
// => A random first name

Lorem.lastName
// => A random last name

Lorem.fullName
// => A random full name

Lorem.emailAddress
// => A random email address

Lorem.tweet
// => A random tweet

Author

Lukas Kubanek // lukaskubanek.com // @kubanekl

License

LoremSwiftum is released under the MIT License.

Github

link
Stars: 49
Help us keep the lights on

Dependencies

Used By

Total:

Releases

v2.0.0-beta - Aug 29, 2017

  • Updated to work with Swift 4 and Xcode 9 beta 6
  • Tweaked the API a bit
  • Removed support for generating Date and URL objects
  • Version 2.0.0 will be released once Swift 4 will be ready

v1.1.0 - Sep 24, 2016

v1.0.0 - Oct 21, 2015

  • Updated to Swift 2.0
  • Added OS X target
  • Removed support for images
  • Cleaned up the API

v0.1.0 - Nov 28, 2014