Skip to content

Commit

Permalink
Merge pull request #119 from wayfair/fix-memory-leak
Browse files Browse the repository at this point in the history
Fixed memory leak with BrickDimension
  • Loading branch information
klundberg authored Apr 5, 2017
2 parents 4fa5d5d + 6911323 commit e14c2d5
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions Source/Models/BrickDimension.swift
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit e14c2d5

Please sign in to comment.