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 withinapplication: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 stringcamelCased(firstCharacterCase:)
- Convertsunderscore_cased
tocamelCased
orCamelCased
pluralize()
- E.g."Banana"
to"Bananas"
;"Money"
to"Monies"
underscoreCased()
- ConvertscamelCased
orCamelCased
tounderscore_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, dan2552@gmail.com
Placemat is available under the MIT license. See the LICENSE file for more info.