Skip to content
This repository has been archived by the owner on Dec 4, 2018. It is now read-only.

UIPageViewController support, scaling & new delegate methods #166

Open
wants to merge 26 commits into
base: master
Choose a base branch
from

Conversation

Coledunsby
Copy link

  • Added support for use in UIPageViewController
  • Added scale property to scale UINavigationBar titleView on contract/expand similar to Instagram
  • Added delegate methods

@@ -20,7 +20,7 @@ static inline CGFloat AACStatusBarHeight(UIViewController *viewController)
}

// Modal views do not overlap the status bar, so no allowance need be made for it
if (viewController.presentingViewController != nil)
if (viewController.presentingViewController.presentedViewController == viewController)
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This a better way to check if it's a modal. The current implementation fails in some cases (e.g. if a UITabBarController is pushed onto a UIViewController).

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@Coledunsby @telly Should be fixed in main repo! Thanks for your PR.

@Mazyod
Copy link
Contributor

Mazyod commented Feb 10, 2017

I'm trying to get back working on this, and after properly implementing better test cases, this is my top priority.

@aarifsumra
Copy link

This PR was very useful to me thanks

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants