ZLSwipeableView
ZLSwipeableView copied to clipboard
Slow animation on iPhone 6 Plus simulator
I'm having slow animations on the iPhone 6 Plus simulator when testing the demo project.
I added shouldRasterize
to the cardView
view, but didn't seem to solve the issue.
- (UIView *)nextViewForSwipeableView:(ZLSwipeableView *)swipeableView {
if (self.colorIndex >= self.colors.count) {
self.colorIndex = 0;
}
CardView *view = [[CardView alloc] initWithFrame:swipeableView.bounds];
view.backgroundColor = [self colorForName:self.colors[self.colorIndex]];
self.colorIndex++;
view.layer.shouldRasterize = YES;
...
Any ideas ?