---
title: validateContent()
framework: social
role: symbol
role_heading: Instance Method
path: social/slcomposeserviceviewcontroller/validatecontent()
---

# validateContent()

Performs validation of the current content and updates the state of the Post button, if appropriate.

## Declaration

```swift
func validateContent()
```

## Discussion

Discussion By default, validateContent calls isContentValid(), performs internal content validation, and updates the state of the Post button, if necessary. You should call this method if you change any data that your implementation of isContentValid uses to test for content validity.

## See Also

### Validating Content

- [charactersRemaining](social/slcomposeserviceviewcontroller/charactersremaining.md)
- [isContentValid()](social/slcomposeserviceviewcontroller/iscontentvalid().md)
