---
title: services
framework: corebluetooth
role: symbol
role_heading: Instance Property
path: corebluetooth/cbperipheral/services
---

# services

A list of a peripheral’s discovered services.

## Declaration

```swift
var services: [CBService]? { get }
```

## Discussion

Discussion Returns an array of services (represented by CBService objects) that successful call to the discoverServices(_:) method discovered. If you haven’t yet called the discoverServices(_:) method to discover the services of the peripheral, or if there was an error in doing so, the value of this property is nil.

## See Also

### Discovering Services

- [discoverServices(_:)](corebluetooth/cbperipheral/discoverservices(_:).md)
- [discoverIncludedServices(_:for:)](corebluetooth/cbperipheral/discoverincludedservices(_:for:).md)
