Latest 0.2.4
License MIT
Platforms ios 7.0, requires ARC
Frameworks UIKit

Display modal view controllers is easy if you want to follow Apple guidelines and default sizes, but if you need more than Form Sheet, Page Sheet or full screen, Modaly will help you, and all from storyboard, defining size of view controller as you like!

Modaly in iPad


Modaly is available via CocoaPods, so you only need to include this line in your Podfile

pod 'Modaly'


You only need to select a button in your storyboard, and drag holding rigth button pressed to another view controller. When action segue dialog appears (image below), select modaly.

Action Segue Dialog

After that, you need to select freeformin view controller metrics menu (image below), and that’s all!


Modaly supports common UIViewControllers and UINavigationControllers, and the best way to discover it is download and open Demo Xcode project:


Segue reference

To facilitate segue use, I use segue itself as UIViewControllerTransitioningDelegate, so it’s important to save reference to segue because it could be release on display, and animation would call to a dealloc object.
It’s easy to do that on -prepareForSegue:sender: method:

- (void)prepareForSegue:(UIStoryboardSegue *)segue sender:(id)sender {
    if ([segue isKindOfClass:[JMGModaly class]]) {
        // It needs to retain segue because it's animation transition delegate
        self.modalSegue = (JMGModaly *)segue;

One more time, I recommend you to open demo project to see that easily.




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

Latest podspec

    "name": "Modaly",
    "version": "0.2.4",
    "summary": "Segue to present a custom size view controller from storyboard",
    "homepage": "",
    "license": {
        "type": "MIT",
        "file": ""
    "authors": {
        "Jorge Maroto Garcia": "[email protected]"
    "source": {
        "git": "",
        "tag": "0.2.4"
    "platforms": {
        "ios": "7.0"
    "source_files": "Modaly",
    "frameworks": "UIKit",
    "requires_arc": true

Pin It on Pinterest

Share This