SkillAgentSearch skills...

TRVSNavigationControllerTransition

Push/pop transition entire UINavigationController views.

Install / Use

/learn @travisjeffery/TRVSNavigationControllerTransition
About this skill

Quality Score

0/100

Supported Platforms

Universal

README

UINavigationController+TRVSNavigationControllerTransition Category

<hr />

This category provides two methods on UINavigationControllers to push and pop view controllers with an animated transition of the entire UINavigationController's view, rather just the view controller's.

Author: Travis Jeffery

API

- (void)pushViewControllerWithNavigationControllerTransition:(UIViewController *)viewController;
- (void)popViewControllerWithNavigationControllerTransition;

Usages

One usage of this is when you push a view controller onto your UINavigationController and that view controller wants to have its navigationBar drawn above its view so that you can translate it in.

Example

The left photo below is using pushViewController:animated:, notice how the navigation bar in the current view is put out of view by making the navigation bar's origin y point -the navigation bar's height (so you can animate it in when the user scrolls) before the transition is finished. The right photo is using pushViewControllerWithNavigationControllerTransition:, now by using multiple layers we can keep the navigationBar visible in the current view until the transition completes. Keep an eye on the navigation bar.

Bad Good

MIT License, see the LICENSE file for details.

Related Skills

View on GitHub
GitHub Stars151
CategoryDevelopment
Updated1y ago
Forks21

Languages

Objective-C

Security Score

80/100

Audited on Sep 3, 2024

No findings