Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

Some desired changes #26

Merged
merged 19 commits into from
Oct 26, 2015
Merged

Conversation

ayushgoel
Copy link
Contributor

The code here:

  1. Solves the bug where the SAHistoryNavigationViewController extends behind status bar if a modal UIViewController is presented.
  2. Removes any custom animation and works purely by following the delegate methods. (IMHO, the animation should be a different pod altogether)
  3. Uses some functional constructs where it makes understanding code easier.
  4. Extends Sample to present a UIViewController modally.

Some of these changes might be in conflict with what you had planned for this pod. In that case, I would like to create a different pod from this.
Also, if you have any suggestions for the code which could make this merge, would love to know them. 馃槆

On unwind segue, the navbar moves behind the status
bar. This highlights that bug.
To handle interactive pop gesture, make yourself
delegate for navigationBar. Remove last image when
item popped in nav bar.
A crash occurs if user goes back by pressing on
back button very fast repeatedly. This occurs
because popToViewController: and
navigationBar(navigationBar:, didPopItem item:)
are called simultaenously removing two screen shots.

By keeping a reference to the navigation item, we check
in navigation bar delegate method if the required
screen shot has been removed already.
This reverts commit c4579e4.

This is not required since the item given in didPopItem:
is of the VC whose screentshot has not been prepared yet.
@marty-suzuki marty-suzuki merged commit 9510da5 into marty-suzuki:master Oct 26, 2015
@marty-suzuki
Copy link
Owner

Hi @ayushgoel
Sorry for late merging.
Thank you for your pull request!!

@ayushgoel
Copy link
Contributor Author

馃憤 When do you plan to do a release for this? 馃槂

@marty-suzuki
Copy link
Owner

i'll release during this week!

@marty-suzuki
Copy link
Owner

released 2.1.0

@ayushgoel
Copy link
Contributor Author

馃啋

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

Successfully merging this pull request may close these issues.

None yet

2 participants