---
title: "CGRectGetMinX(_:)"
framework: coregraphics
role: symbol
role_heading: Function
path: "coregraphics/cgrectgetminx(_:)"
---

# CGRectGetMinX(_:)

Returns the smallest value for the x-coordinate of the rectangle.

## Declaration

```swift
func CGRectGetMinX(_ rect: CGRect) -> CGFloat
```

## Parameters

- `rect`: The rectangle to examine.

## Return Value

Return Value The smallest value for the x-coordinate of the rectangle.

## See Also

### Getting Min, Mid, and Max Values

- [CGRectGetMinY(_:)](coregraphics/cgrectgetminy(_:).md)
- [CGRectGetMidX(_:)](coregraphics/cgrectgetmidx(_:).md)
- [CGRectGetMidY(_:)](coregraphics/cgrectgetmidy(_:).md)
- [CGRectGetMaxX(_:)](coregraphics/cgrectgetmaxx(_:).md)
- [CGRectGetMaxY(_:)](coregraphics/cgrectgetmaxy(_:).md)
