[![CI Status](http://img.shields.io/travis/Jed Lewison/MAFOverlay.svg?style=flat)](https://travis-ci.org/Jed Lewison/MAFOverlay)
MAFOverlay brings popover-style overlay presentations to iPhone and iPad on iOS 7+.
- MAFOverlay presents view controllers as overlays
- Default setup should work for most cases—simply create a coordinator object for the presented view controller
- Handles iOS 7 rotation—simply let the coordinator know about willanimaterotation events
- Works well with MAFOptionActionController for customizable ActionSheet style presentations
- Supports a subset of popover features, including presenting from Bar Button or View
- Supports Cross Dissolve and Cover Vertical transitions, but is customizable
- Uses UIKit's custom modal presentation API
- Provides grain control over animation and layout through layout attributes object and datasource
To run the example project, clone the repo, and run pod install
from the Example directory first.
You can also run pod try MAFOverlay
.
There's an occasional bug in the iOS simulator when presenting from a bar button item, but this bug is not visible on devices.
MAFOverlay is available through CocoaPods. To install it, simply add the following line to your Podfile:
pod "MAFOverlay"
Jed Lewison, [email protected]
MAFOverlay is available under the MIT license. See the LICENSE file for more info.