<!--
{
  "availability" : [
    "iOS: -",
    "iPadOS: -",
    "macCatalyst: -",
    "tvOS: -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIFloatRange",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "c:@SA@UIFloatRange"
  },
  "title" : "UIFloatRange"
}
-->

# UIFloatRange

The range of motion for attached objects.

```
struct UIFloatRange
```

## Topics

### Creating a float range

[`init()`](/documentation/UIKit/UIFloatRange/init())

[`init(minimum:maximum:)`](/documentation/UIKit/UIFloatRange/init(minimum:maximum:)-8dzgq)

Returns a new float range structure from the given components.

[`UIFloatRangeInfinite`](/documentation/UIKit/UIFloatRange/infinite)

A range whose range is minus infinity to infinity.

[`UIFloatRangeZero`](/documentation/UIKit/UIFloatRange/zero)

A range whose minimum and maximum are both `0.0`.

### Creating a float range

[`UIFloatRangeMake`](/documentation/UIKit/UIFloatRange/init(minimum:maximum:)-1vgoo)

Returns a new float range structure from the given components.

[`UIFloatRangeInfinite`](/documentation/UIKit/UIFloatRange/infinite)

A range whose range is minus infinity to infinity.

[`UIFloatRangeZero`](/documentation/UIKit/UIFloatRange/zero)

A range whose minimum and maximum are both `0.0`.

### Getting the range values

[`maximum`](/documentation/UIKit/UIFloatRange/maximum)

The maximum range of motion for sliding and pin attachments.

[`minimum`](/documentation/UIKit/UIFloatRange/minimum)

The minimum range of motion for sliding and pin attachments.

### Testing the range values

[`UIFloatRangeIsInfinite`](/documentation/UIKit/UIFloatRange/isInfinite)

Returns a Boolean indicating whether the specified float range is infinitely large.

[`UIFloatRangeIsEqualToRange(_:_:)`](/documentation/UIKit/UIFloatRangeIsEqualToRange(_:_:))

Returns a Boolean indicating whether two float ranges are equivalent.

[`UIFloatRangeIsEqualToRange`](/documentation/UIKit/UIFloatRangeIsEqualToRange)

Returns a Boolean indicating whether two float ranges are equivalent.

## Relationships

### Conforms To

[`Decodable`](/documentation/Swift/Decodable)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

[`Escapable`](/documentation/Swift/Escapable)

[`Encodable`](/documentation/Swift/Encodable)

[`BitwiseCopyable`](/documentation/Swift/BitwiseCopyable)

[`Sendable`](/documentation/Swift/Sendable)

[`Copyable`](/documentation/Swift/Copyable)

[`Equatable`](/documentation/Swift/Equatable)

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)