<!--
{
  "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",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:5UIKit15UICellAccessoryV23CustomViewConfigurationV"
  },
  "title" : "UICellAccessory.CustomViewConfiguration"
}
-->

# UICellAccessory.CustomViewConfiguration

Configuration options for a custom accessory.

```
struct CustomViewConfiguration
```

## Topics

### Creating configuration options

[`init(customView: UIView, placement: UICellAccessory.Placement, isHidden: Bool?, reservedLayoutWidth: UICellAccessory.LayoutDimension?, tintColor: UIColor?, maintainsFixedSize: Bool?)`](/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/init(customView:placement:isHidden:reservedLayoutWidth:tintColor:maintainsFixedSize:))

Creates a custom accessory options structure.

### Accessing configuration options

[`var isHidden: Bool`](/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/isHidden)

A Boolean value that determines whether the cell hides the accessory.

[`let customView: UIView`](/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/customView)

The custom view to display for the accessory.

[`let placement: UICellAccessory.Placement`](/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/placement)

The placement for the accessory.

[`var reservedLayoutWidth: UICellAccessory.LayoutDimension`](/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/reservedLayoutWidth)

The layout width that the system reserves for the accessory, and then centers the accessory within.

[`var tintColor: UIColor?`](/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/tintColor)

The tint color to apply to the accessory.

[`var maintainsFixedSize: Bool`](/documentation/UIKit/UICellAccessory-swift.struct/CustomViewConfiguration/maintainsFixedSize)

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



---

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)