<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Social",
  "identifier" : "/documentation/Social/SLComposeViewController/add(_:)-1z68a",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "Social"
    ],
    "preciseIdentifier" : "c:objc(cs)SLComposeViewController(im)addImage:"
  },
  "title" : "add(_:)"
}
-->

# add(_:)

Adds an image to the post.

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

## Parameters

`image`

The image to add to the post.

## Return Value

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

## Discussion

This method returns <doc://com.apple.documentation/documentation/Swift/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](/documentation/uikit/uiimage#1965930). 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`](/documentation/Social/SLRequest).

---

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)