Latest 0.7.1
License MIT
Platforms ios 9.0, requires ARC

CI Status

Placemat is a support library with little helpers. It’s main purpose is to be used alongside Luncheon, but can also be used standalone.

It’s most notable features are:

  • Navigation – Helper class to navigate between view controllers easily.
    • show(target:modally:) – shows a given UIViewController. Modally is optional. When modally is enabled, it will embed the target in a UINavigationController and present modally.
    • dimiss() – Dismisses the view controller. Automatically determines how the controller should be dismissed appropriately (e.g. if it’s shown modally or not)
    • setupWindow(). – Used to setup a UIWindow containing the view controller. Normally this should be used within application:didFinishLaunchingWithOptions:.
  • BlockBarButtonItem – UIBarButtonItem that simply allows you to supply a block rather than a selector.
  • String extensions –
    • changingCaseOf(firstCharacter:) – Change the case of the first character of a string
    • camelCased(firstCharacterCase:) – Converts underscore_cased to camelCased or CamelCased
    • pluralize() – E.g. "Banana" to "Bananas"; "Money" to "Monies"
    • underscoreCased() – Converts camelCased or CamelCased to underscore_cased
    • humanize(firstCharacterCase:) – E.g. converts "underscore_cased" to "underscore cased" or "Underscore cased"
    • titleize()– E.g. converts "underscore_cased" to "Underscore Cased"


To run the example project, clone the repo, and run pod install from the Example directory first.


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

pod "Placemat"


Daniel Inkpen, [email protected]


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

Latest podspec

    "name": "Placemat",
    "version": "0.7.1",
    "summary": "Dependency of Luncheon. Support library.",
    "homepage": "",
    "license": "MIT",
    "authors": {
        "Daniel Inkpen": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.7.1"
    "social_media_url": "",
    "platforms": {
        "ios": "9.0"
    "requires_arc": true,
    "source_files": "Placemat/Classes/**/*",
    "pushed_with_swift_version": "3.0"

Pin It on Pinterest

Share This