---
title: macIdiomStyle
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uibutton/configuration-swift.struct/macidiomstyle-swift.property
---

# macIdiomStyle

The style to use when this button appears in macOS.

## Declaration

```swift
var macIdiomStyle: UIButton.Configuration.MacIdiomStyle { get set }
```

## Discussion

Discussion Use this property when building your app with Mac Catalyst. The value UIButton.Configuration.MacIdiomStyle.automatic lets the system choose the appropriate style. Select a specific style to force the button to always use that style.

## See Also

### Configuring the appearance on macOS

- [UIButton.Configuration.MacIdiomStyle](uikit/uibutton/configuration-swift.struct/macidiomstyle-swift.enum.md)
