Latest 1.0
Homepage https://github.com/mkral/UINavigationItem-AnimatedPrompt
License MIT
Platforms ios
Authors

UINavigationItem-AnimatedPrompt

This UINavigationItem Category adds the ability to set the prompt with an animation and provides a completion block so you can dismiss the view controller after the prompt is gone.

Install via Cocoapods:

pod 'UINavigationItem+AnimatedPrompt', '~> 1.0'

Don’t know about cocoapods? Check it out

To Use:

Import Header File:

#import "UINavigationItem+AnimatedPrompt.h"

Set Prompt and Completion Block:

__weak id weakSelf = self;
[self.navigationItem setPrompt:nil animated:YES completion:^{
    [weakSelf performSegueWithIdentifier:@"someSegue" sender:nil];
}];

Latest podspec

{
    "name": "UINavigationItem+AnimatedPrompt",
    "platforms": {
        "ios": null
    },
    "version": "1.0",
    "summary": "Category for UINavigationItem to get a callback after prompt is finished animated.",
    "authors": {
        "Michael Kral": "[email protected]"
    },
    "homepage": "https://github.com/mkral/UINavigationItem-AnimatedPrompt",
    "license": "MIT",
    "source": {
        "git": "https://github.com/mkral/UINavigationItem-AnimatedPrompt.git",
        "tag": "1.0"
    },
    "source_files": "*.{h,m}",
    "requires_arc": false
}

Pin It on Pinterest

Share This