---
title: serviceType
framework: social
role: symbol
role_heading: Instance Property
path: social/slcomposeviewcontroller/servicetype
---

# serviceType

Specifies the social-networking service.

## Declaration

```swift
var serviceType: String! { get }
```

## Discussion

Discussion The value of this property is set when you initialize a social compose view controller in init(forServiceType:). Each social view controller you present is connected to only one social service at a time. Use this property to check which service your social view controller has specified. For a list of possible values, see Service Type Constants.

## See Also

### Checking the Social Service Type

- [isAvailable(forServiceType:)](social/slcomposeviewcontroller/isavailable(forservicetype:).md)
