---
title: "toggleBoldface(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uiresponderstandardeditactions/toggleboldface(_:)"
---

# toggleBoldface(_:)

Toggles the bold style information of the selected text.

## Declaration

```swift
optional func toggleBoldface(_ sender: Any?)
```

## Parameters

- `sender`: The object calling this method.

## Discussion

Discussion Use this method to apply or remove style information to the currently selected content.

## See Also

### Handling styled text editing

- [toggleItalics(_:)](uikit/uiresponderstandardeditactions/toggleitalics(_:).md)
- [toggleUnderline(_:)](uikit/uiresponderstandardeditactions/toggleunderline(_:).md)
