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

# UITableViewContentHuggingElements

Constants that determine which types of items in a table view tightly hug their content.

```
struct UITableViewContentHuggingElements
```

## Topics

### Specifying content-hugging elements

[`UITableViewContentHuggingElementsNone`](/documentation/UIKit/UITableViewContentHuggingElements/UITableViewContentHuggingElementsNone)

A mode where none of the items in the table view tightly hug their content.

[`static var sectionHeaders: UITableViewContentHuggingElements`](/documentation/UIKit/UITableViewContentHuggingElements/sectionHeaders)

A mode where section headers in the table view tightly hug their content.

### Creating a content-hugging elements structure

[`init(rawValue: Int)`](/documentation/UIKit/UITableViewContentHuggingElements/init(rawValue:))

Creates a content-hugging elements structure.

## Relationships

### Conforms To

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

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

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

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

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

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

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

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

---

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)