From 6911323c7c888db75849065b429eaa3a95f15f55 Mon Sep 17 00:00:00 2001 From: Justin Anderson Date: Wed, 5 Apr 2017 16:13:48 -0400 Subject: [PATCH] Fixed memory leak with BrickDimension --- Source/Models/BrickDimension.swift | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/Source/Models/BrickDimension.swift b/Source/Models/BrickDimension.swift index 7aa3cc6..02f0427 100644 --- a/Source/Models/BrickDimension.swift +++ b/Source/Models/BrickDimension.swift @@ -18,15 +18,15 @@ public struct BrickSize { } } -public indirect enum BrickDimension { +public enum BrickDimension { case Ratio(ratio: CGFloat) case Fixed(size: CGFloat) case Fill - case Auto(estimate: BrickDimension) - case Orientation(landscape: BrickDimension, portrait: BrickDimension) - case HorizontalSizeClass(regular: BrickDimension, compact: BrickDimension) - case VerticalSizeClass(regular: BrickDimension, compact: BrickDimension) + indirect case Auto(estimate: BrickDimension) + indirect case Orientation(landscape: BrickDimension, portrait: BrickDimension) + indirect case HorizontalSizeClass(regular: BrickDimension, compact: BrickDimension) + indirect case VerticalSizeClass(regular: BrickDimension, compact: BrickDimension) public var isEstimate: Bool { switch self.dimension {