Returns a Boolean indicating whether two float ranges are equivalent.
SDKs
- iOS 7.0–12.0Deprecated
- Mac Catalyst 13.0–13.0Deprecated
- tvOS 9.0–12.0Deprecated
- Xcode 10.0–10.0Deprecated
Framework
- UIKit
Declaration
func UIFloatRangeIsEqualToRange(_ range: UIFloat Range, _ otherRange: UIFloat Range) -> Bool
Parameters
range
The first range to compare.
otherRange
The second range to compare.
Discussion
Two ranges are considered equal when their minimum values are the same and their maximum values are the same. In practice, the minimum and maximum values do not have to be exactly equal, but the difference between each pair of values must be less than FLT
.