-
Notifications
You must be signed in to change notification settings - Fork 764
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
Fade skip button for last page if fade last page is enabled #82
Conversation
Add property skipButtonTextColor in onboardingViewController
I'm not a fan of this for two reasons - the first is this PR includes the changes from your other PR that was closed because the functionality already exists to customize the skip button and page control without adding additional code. The second is that fading out the skip button on the last page is a fundamentally different process than fading out the page control - and thus shouldn't be tied logically to it. Some people might want to fade the page control but not the skip button. Also, AFAIK, setting the alpha of the skip button wouldn't disable it - so it would still be selectable and thus would lead to some weirdness if someone tapped the spot where it used to be and the skip handler was called. |
I agree. Fade the button is not good idea. Do you think which way is good to disable skip button at last? How about removeFromSuperview? |
You could always set the |
To me, I don't like the skip button shows up with the "Getting started" at the last page. So I want skip button to disappear when the page control fades. |
Do you want it to reappear if you scroll back from the last page to the previous pages, or be gone forever once you reach the last screen? |
Yes, it should reappear if you scroll back |
I'll try and whip something up tonight for you. |
How about something like this in _pageControl.alpha = 1.0 - percentComplete;
if (percentComplete >= 1.0) {
_skipButton.enabled = NO;
[UIView transitionWithView:_skipButton
duration:0.1
options:UIViewAnimationOptionTransitionCrossDissolve
animations:^{
_skipButton.hidden = YES;
}
completion:NULL];
} |
We definitely don't want to do a UIView animation inside that |
Wouldn't checking |
@higueraalfredo: No, because lets say the user was dragging the page back and forth from 98% -> 100% of the scroll percentage, it would be firing constantly and would probably break. I should have this feature added tonight. |
I believe what you're looking for was been added in version 2.1.7 after merging #84. You should be able to run a |
No description provided.