MortimerGoro/MGSwipeTableCell

MSSwipeTableCell for me is not working with StackViews inside my cell. Its crashing while generating the image in the method : imageFromView

Aviral190694 opened this issue · 0 comments

With stackview in the cell, I am facing a crash in the said function in class MGSwipeTableCell :
The crash happens when I scroll from left to right to get the button.

  • (UIImage *)imageFromView:(UIView *)view cropSize:(CGSize)cropSize{
    UIGraphicsBeginImageContextWithOptions(cropSize, NO, [[UIScreen mainScreen] scale]);
    [view.layer renderInContext:UIGraphicsGetCurrentContext()];
    UIImage * image = UIGraphicsGetImageFromCurrentImageContext();
    UIGraphicsEndImageContext();
    return image;
    }

Please let me know what can be the right fix:
image

This is the layout of my cell.