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
HeightChangeinstance with a previous height value and a new height valueDeclaration
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
View on GitHub
Install in Dash
HeightChange Enumeration Reference