Skip to content

Commit

Permalink
Merge pull request #22 from Drusy/master
Browse files Browse the repository at this point in the history
TRMosaicLayout delegate is now weak
  • Loading branch information
vinnyoodles authored Apr 13, 2018
2 parents a85faa7 + 8a8a32c commit 79df860
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions TRMosaicLayout/Classes/TRMosaicLayout.swift
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ public enum TRMosaicCellType {
case small
}

public protocol TRMosaicLayoutDelegate {
public protocol TRMosaicLayoutDelegate: class {

func collectionView(_ collectionView:UICollectionView, mosaicCellSizeTypeAtIndexPath indexPath:IndexPath) -> TRMosaicCellType

Expand All @@ -24,7 +24,7 @@ public protocol TRMosaicLayoutDelegate {

open class TRMosaicLayout: UICollectionViewLayout {

open var delegate:TRMosaicLayoutDelegate!
open weak var delegate:TRMosaicLayoutDelegate!

var columns = TRMosaicColumns()

Expand Down

0 comments on commit 79df860

Please sign in to comment.