<!--
{
  "availability" : [
    "iOS: 15.0.0 -",
    "iPadOS: 15.0.0 -",
    "macCatalyst: -",
    "tvOS: 15.0.0 -",
    "visionOS: -"
  ],
  "documentType" : "symbol",
  "framework" : "UIKit",
  "identifier" : "/documentation/UIKit/UIButton/Configuration-swift.struct/Size",
  "metadataVersion" : "0.1.0",
  "role" : "Enumeration",
  "symbol" : {
    "kind" : "Enumeration",
    "modules" : [
      "UIKit"
    ],
    "preciseIdentifier" : "s:So8UIButtonC5UIKitE13ConfigurationV4SizeO"
  },
  "title" : "UIButton.Configuration.Size"
}
-->

# UIButton.Configuration.Size

A predefined size for button elements.

```
enum Size
```

## Overview

You can use this enumeration to choose a predefined size for elements in a button. The value you choose for button size can be effectively overridden by explicitly assigning values for configuration elements like padding, corner style, or title and subtitle font sizes.

## Topics

### Button sizes

[`case large`](/documentation/UIKit/UIButton/Configuration-swift.struct/Size/large)

Displays button elements at a large size.

[`case medium`](/documentation/UIKit/UIButton/Configuration-swift.struct/Size/medium)

Displays button elements at a standard size.

[`case small`](/documentation/UIKit/UIButton/Configuration-swift.struct/Size/small)

Displays button elements at a small size.

[`case mini`](/documentation/UIKit/UIButton/Configuration-swift.struct/Size/mini)

Displays button elements at the smallest size.

## Relationships

### Conforms To

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

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

---

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)