---
title: "fontPickerViewControllerDidPickFont(_:)"
framework: uikit
role: symbol
role_heading: Instance Method
path: "uikit/uifontpickerviewcontrollerdelegate/fontpickerviewcontrollerdidpickfont(_:)"
---

# fontPickerViewControllerDidPickFont(_:)

Tells the delegate that the user has selected a font.

## Declaration

```swift
optional func fontPickerViewControllerDidPickFont(_ viewController: UIFontPickerViewController)
```

## Parameters

- `viewController`: The controller for the font picker that has the user’s font selection.

## Discussion

Discussion When the user picks a font, you can retrieve information about the user’s selected font from the view controller’s selectedFontDescriptor.

## See Also

### Receiving font picker interactions

- [fontPickerViewControllerDidCancel(_:)](uikit/uifontpickerviewcontrollerdelegate/fontpickerviewcontrollerdidcancel(_:).md)
