From 3122415a331e4d5cf594618faf7ebde8b2f6d269 Mon Sep 17 00:00:00 2001 From: Dmitriy Shulzhenko Date: Thu, 30 Mar 2017 13:08:14 +0300 Subject: [PATCH] Possibility to render opaque layer without black background. --- .../LXReorderableCollectionViewFlowLayout.m | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m b/LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m index 2db5c8c..0fedb4c 100755 --- a/LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m +++ b/LXReorderableCollectionViewFlowLayout/LXReorderableCollectionViewFlowLayout.m @@ -53,7 +53,7 @@ - (UIView *)LX_snapshotView { if ([self respondsToSelector:@selector(snapshotViewAfterScreenUpdates:)]) { return [self snapshotViewAfterScreenUpdates:YES]; } else { - UIGraphicsBeginImageContextWithOptions(self.bounds.size, self.isOpaque, 0.0f); + UIGraphicsBeginImageContextWithOptions(self.bounds.size, NO, 0.0f); [self.layer renderInContext:UIGraphicsGetCurrentContext()]; UIImage *image = UIGraphicsGetImageFromCurrentImageContext(); UIGraphicsEndImageContext();