From e732e330521c73ff4462c4b10329913541f82344 Mon Sep 17 00:00:00 2001 From: Ran Hassid Date: Sun, 7 Jan 2018 22:57:14 +0200 Subject: [PATCH] Layout delegate should be weak --- PinterestLayout/PinterestLayout.swift | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/PinterestLayout/PinterestLayout.swift b/PinterestLayout/PinterestLayout.swift index 8554de7..32b453b 100644 --- a/PinterestLayout/PinterestLayout.swift +++ b/PinterestLayout/PinterestLayout.swift @@ -17,7 +17,7 @@ public class PinterestLayout: UICollectionViewLayout { /** Delegate. */ - public var delegate: PinterestLayoutDelegate! + public weak var delegate: PinterestLayoutDelegate! /** Number of columns. */