<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Social",
  "identifier" : "/documentation/Social/SLComposeServiceViewController/autoCompletionViewController",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Social"
    ],
    "preciseIdentifier" : "c:objc(cs)SLComposeServiceViewController(py)autoCompletionViewController"
  },
  "title" : "autoCompletionViewController"
}
-->

# autoCompletionViewController

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

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

## 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 <doc://com.apple.documentation/documentation/UIKit/UIViewController/preferredContentSize> property to an appropriate value. `SLComposeServiceViewController` observes changes to the <doc://com.apple.documentation/documentation/UIKit/UIViewController/preferredContentSize> property and animates view size changes, if necessary.

---

Copyright &copy; 2026 Apple Inc. All rights reserved. | [Terms of Use](https://www.apple.com/legal/internet-services/terms/site.html) | [Privacy Policy](https://www.apple.com/privacy/privacy-policy)