ZLSwipeableView icon indicating copy to clipboard operation
ZLSwipeableView copied to clipboard

Slow animation on iPhone 6 Plus simulator

Open zackbraksa opened this issue 9 years ago • 0 comments

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 ?

zackbraksa avatar Dec 18 '15 23:12 zackbraksa