Comments (3)
I have the same issue with JazzHands 2.0, although the demo app works fine.
scrollViewDidScroll
uses the default implementation from IFTTTAnimatedPagingScrollViewController
.
from jazzhands.
The issue is in IFTTTFilmStrip.m
here (see the commented out line):
- (id<IFTTTInterpolatable>)valueAtTime:(CGFloat)time
{
NSAssert(!self.isEmpty, @"At least one KeyFrame must be set before animation begins.");
id value;
NSUInteger indexAfter = [self indexOfKeyframeAfterTime:time];
if (indexAfter == 0) {
value = ((IFTTTKeyframe *)self.keyframes[0]).value;
} else if (indexAfter < self.keyframes.count) {
IFTTTKeyframe *keyframeBefore = (IFTTTKeyframe *)self.keyframes[indexAfter - 1];
IFTTTKeyframe *keyframeAfter = (IFTTTKeyframe *)self.keyframes[indexAfter];
CGFloat progress = [self progressFromTime:keyframeBefore.time toTime:keyframeAfter.time atTime:time withEasingFunction:keyframeBefore.easingFunction];
if ([keyframeBefore.value respondsToSelector:@selector(interpolateTo:withProgress:)]
// && [keyframeAfter.value isKindOfClass:[keyframeBefore.value class]]
) {
value = [keyframeBefore.value interpolateTo:keyframeAfter.value withProgress:progress];
} else {
value = keyframeBefore.value;
}
} else {
value = ((IFTTTKeyframe *)self.keyframes.lastObject).value;
}
return value;
}
This is because [UIColor blackColor]
has a class of UIDeviceWhiteColor
, where as any other non white / black / grey colours will have a class of UIDeviceRGBColor
. This makes the if statement fail, and hence the interpolation.
from jazzhands.
@RodolfoAntonici Thanks for pointing out the issue, and @gazsp thanks for the super helpful detective work on the cause!
from jazzhands.
Related Issues (20)
- IFTTTScrollViewPageConstraintAnimation ignores initial constraint constants
- Hide Animation performs differently on 32 bit and 64 bit devices HOT 1
- Can not re-implement Demo because source file change?
- Add <UIKit/UIKit.h> to IFTTTAnimator.h
- Reset Animator Animations
- /Users/mg/Documents/Grails/GGTS3.6.3-SR1-2/Demo/Pods/JazzHands/JazzHands/IFTTTConstraintConstantAnimation.m:18:17: Method override for the designated initializer of the superclass '-init' not found HOT 2
- Tutorial HOT 1
- Using setFrame with IFTTT ?
- How could I show UIAlertController in Onboarding Screen
- Swiping in accessibility mode moves through elements in the wrong order
- JazzHands runs not fluent on iOS7 other than iOS8 and iOS9 HOT 1
- IFTTTHideAnimation hideAt and showAt have swapped functionality
- IFTTTAnimatedPagingScrollViewController: Delegate or callback on page scroll?
- Animation issue in iOS 7.0.3
- HOW TO EXECUTE ANIMATION WITH UIVIEWCONTROLLER?
- Broken hide animation!!! HOT 1
- Cannot use masonry update_constranist to change autolayout attibute . HOT 1
- 不能适配iPhone X 顶部被覆盖 没有适配safeAero
- add support for swift package manager
- Test issue_01
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from jazzhands.