Can someone explain how this is even possible?
print(" \(r.height) \(r)")
one example of results
39.927 (44.158, 102.511, 284.19, -39.9274)
notice, the first 39 is positive, yet the second is negative, BOTH from the same CGRect!
Can someone explain how this is even possible?
print(" \(r.height) \(r)")
one example of results
39.927 (44.158, 102.511, 284.19, -39.9274)
notice, the first 39 is positive, yet the second is negative, BOTH from the same CGRect!
I assume “.height” calls 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.
no idea… but I would “assume” the both values should be the same… as there is no way to tell if the CGRect is a negative value… without comparing r.origin.y and r.minY