HeightChange

enum HeightChange
extension HeightChange : Equatable, Hashable

A quick enum that indicates state when a height change has occurred.

  • Indicates that a height change resulted in a numerically positive vertical change

    Declaration

    Swift

    case growing
  • Create a new HeightChange instance with a previous height value and a new height value

    Declaration

    Swift

    init(previous: CGFloat, new: CGFloat)
  • Indicates that a height change resulted in no difference vertically

    Declaration

    Swift

    case noChange
  • Indicates that a height change resulted in a numerically negative vertical change

    Declaration

    Swift

    case shrinking