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

# toggleItalics(_:)

Toggles the italic style information of the selected text.

## Declaration

```swift
optional func toggleItalics(_ 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

- [toggleBoldface(_:)](uikit/uiresponderstandardeditactions/toggleboldface(_:).md)
- [toggleUnderline(_:)](uikit/uiresponderstandardeditactions/toggleunderline(_:).md)
