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’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added option to fade in new controller #15

Merged
merged 4 commits into from
Jan 3, 2014
Merged

Conversation

designatednerd
Copy link
Contributor

Love this concept. For the app we're using this in, our UX team preferred a fade-in action to the slide-over action, so I added it as a dev-settable option where the default action is still your original animation. Please let me know if you've got any questions, and thanks for putting this together!

@@ -306,10 +306,35 @@ - (void)setMainViewController:(UIViewController *)mainViewController animated:(B
[self.containerView addSubview:incomingViewController.view];

incomingViewController.view.frame = self.containerView.bounds;
incomingViewController.view.transform = CGAffineTransformTranslate(incomingViewController.view.transform, outgoingStartX, 0.0f);

Copy link
Contributor

Choose a reason for hiding this comment

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

Would you mind cleaning up the extra space here?

@jnjosh
Copy link
Contributor

jnjosh commented Jan 3, 2014

Looks good. Just a couple cleanup comments.

designatednerd and others added 2 commits January 3, 2014 12:36
- Explicit statement of floats for consistency.
Updates per request of twoToasters team
@designatednerd
Copy link
Contributor Author

Requested changes have been made. Please let me know if you have any further questions. Thanks!

@jnjosh
Copy link
Contributor

jnjosh commented Jan 3, 2014

👍

jnjosh pushed a commit that referenced this pull request Jan 3, 2014
Added option to fade in new controller
@jnjosh jnjosh merged commit 283652f into twotoasters:master Jan 3, 2014
This pull request was closed.
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.

2 participants