---
title: "add(_:)"
framework: social
role: symbol
role_heading: Instance Method
path: "social/slcomposeviewcontroller/add(_:)-1z68a"
---

# add(_:)

Adds an image to the post.

## Declaration

```swift
func add(_ image: UIImage!) -> Bool
```

## Parameters

- `image`: The image to add to the post.

## Return Value

Return Value Returns a Boolean value that indicates whether the image was successfully added.

## Discussion

Discussion This method returns false if image does not fit in the currently available space, or if the view controller has already been presented to the user (and therefore cannot be changed). For the accepted UIImage formats, see Figure 2. Image size limits are dependent on the target service and are documented by the service provider. For links to documentation for the supported services, see Table 1 in SLRequest.

## See Also

### Specifying the Contents of the Post

- [setInitialText(_:)](social/slcomposeviewcontroller/setinitialtext(_:).md)
- [add(_:)](social/slcomposeviewcontroller/add(_:)-3mn1w.md)
- [removeAllImages()](social/slcomposeviewcontroller/removeallimages().md)
- [removeAllURLs()](social/slcomposeviewcontroller/removeallurls().md)
