<!--
{
  "availability" : [
    "iOS: 14.0.0 -",
    "iPadOS: 14.0.0 -",
    "macCatalyst: -",
    "tvOS: 14.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/maintainsFixedSize",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit15UICellAccessoryV23CustomViewConfigurationV18maintainsFixedSizeSbvp"
  },
  "title" : "maintainsFixedSize"
}
-->

# maintainsFixedSize

A Boolean value that determines whether to preserve the frame size of the custom view.

```
var maintainsFixedSize: Bool
```

## Discussion

When the value of this property is <doc://com.apple.documentation/documentation/Swift/true>, the system preserves the current frame size of the view. When the value of this property is <doc://com.apple.documentation/documentation/Swift/false>, the system sizes the view during layout of the accessories.

The default value of this property is <doc://com.apple.documentation/documentation/Swift/false>.

---

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)