CGRect structures might store height and width in negative values and CGRectGetHeight
will always return the positive one. In Swift 3.0 CGRect.height
property should be used instead of CGRectGetHeight
.
Regardless of whether the height is stored in the CGRect data structure as a positive or negative number, this function returns the height as if the rectangle were standardized. That is, the result is never a negative number.