<!--
{
  "availability" : [
    "iOS: 6.0.0 -",
    "iPadOS: 6.0.0 -",
    "macCatalyst: 13.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "Social",
  "identifier" : "/documentation/Social/SLComposeViewController/isAvailable(forServiceType:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Social"
    ],
    "preciseIdentifier" : "c:objc(cs)SLComposeViewController(cm)isAvailableForServiceType:"
  },
  "title" : "isAvailable(forServiceType:)"
}
-->

# isAvailable(forServiceType:)

Returns A Boolean value that indicates whether you can send a request for a particular service type.

```
class func isAvailable(forServiceType serviceType: String!) -> Bool
```

## Parameters

`serviceType`

The social networking service. For a list of possible values, see Service Type Constants.

## Return Value

Returns a Boolean value that indicates whether the service is accessible and whether at least one account is set up.

## Discussion

For the account to be available, the user must be logged into the social service in the device settings.

---

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)