---
title: isPencilInputExpected
framework: uikit
role: symbol
role_heading: Instance Property
path: uikit/uitextinputcontext/ispencilinputexpected
---

# isPencilInputExpected

Returns a Boolean value that indicates whether someone is likely to use Apple Pencil for input.

## Declaration

```swift
var isPencilInputExpected: Bool { get set }
```

## Discussion

Discussion When pencil input is likely, adjust your UI or perform any actions you need to accommodate that input. For example, you might adjust the size of UI elements to optimize them for handwriting input.

## See Also

### Getting the expected input type

- [isDictationInputExpected](uikit/uitextinputcontext/isdictationinputexpected.md)
- [isHardwareKeyboardInputExpected](uikit/uitextinputcontext/ishardwarekeyboardinputexpected.md)
