<!--
{
  "availability" : [
    "iOS: 17.0.0 -",
    "iPadOS: 17.0.0 -",
    "macCatalyst: 17.0.0 -",
    "macOS: 14.0.0 -",
    "tvOS: 17.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 10.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "SwiftUI",
  "identifier" : "/documentation/SwiftUI/Text/Layout/TypographicBounds",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "SwiftUI"
    ],
    "preciseIdentifier" : "s:7SwiftUI4TextV6LayoutV17TypographicBoundsV"
  },
  "title" : "Text.Layout.TypographicBounds"
}
-->

# Text.Layout.TypographicBounds

The typographic bounds of an element in a text layout.

```
@frozen struct TypographicBounds
```

## Topics

### Initializers

[`init()`](/documentation/SwiftUI/Text/Layout/TypographicBounds/init())

Initializes to an empty bounds with zero origin.

### Instance Properties

[`var ascent: CGFloat`](/documentation/SwiftUI/Text/Layout/TypographicBounds/ascent)

The ascent of the element.

[`var descent: CGFloat`](/documentation/SwiftUI/Text/Layout/TypographicBounds/descent)

The descent of the element.

[`var leading: CGFloat`](/documentation/SwiftUI/Text/Layout/TypographicBounds/leading)

The leading of the element.

[`var origin: CGPoint`](/documentation/SwiftUI/Text/Layout/TypographicBounds/origin)

The position of the left edge of the element’s
baseline, relative to the text view.

[`var rect: CGRect`](/documentation/SwiftUI/Text/Layout/TypographicBounds/rect)

Returns a rectangle encapsulating the bounds.

[`var width: CGFloat`](/documentation/SwiftUI/Text/Layout/TypographicBounds/width)

The width of the element.

## Relationships

### Conforms To

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

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

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

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

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

---

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)