Skip to content

Commit a4facd0

Browse files
committed
Fixes #28 - Flicker when removing the previous page without animation.
1 parent fa86c18 commit a4facd0

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

SCPageViewController/SCPageViewController.m

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1268,7 +1268,9 @@ - (void)deletePagesAtIndexes:(NSIndexSet *)indexes animated:(BOOL)animated compl
12681268
dispatch_group_leave(animationsDispatchGroup);
12691269
}];
12701270
}
1271-
}
1271+
} else {
1272+
[viewController.view removeFromSuperview];
1273+
}
12721274

12731275
// Update page indexes
12741276
[self.pages removeObjectAtIndex:pageIndex];

0 commit comments

Comments
 (0)