TestsTested | ✗ |
LangLanguage | SwiftSwift |
License | MIT |
ReleasedLast Release | Jun 2017 |
SwiftSwift Version | 3.0 |
SPMSupports SPM | ✗ |
Maintained by Daniel Green.
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 stringcamelCased(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.