---
title: autoCompletionViewController
framework: social
role: symbol
role_heading: Instance Property
path: social/slcomposeserviceviewcontroller/autocompletionviewcontroller
---

# autoCompletionViewController

The view controller that manages an autocompletion view for suggesting common text completions while users type.

## Declaration

```swift
var autoCompletionViewController: UIViewController! { get set }
```

## Discussion

Discussion An autocompletion view can appear in place of the list of configuration items, just below the text view in the compose view. The compose view controller allows only one autocompletion view controller to be present at a time. Note that your custom autocompletion view controller should set its preferredContentSize property to an appropriate value. SLComposeServiceViewController observes changes to the preferredContentSize property and animates view size changes, if necessary.
