<!--
{
  "availability" : [
    "iOS: 5.0.0 -",
    "iPadOS: 5.0.0 -",
    "macCatalyst: 13.1.0 -",
    "macOS: 10.7.0 -",
    "tvOS: 9.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CoreBluetooth",
  "identifier" : "/documentation/CoreBluetooth/CBPeripheral/services",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Property",
  "symbol" : {
    "kind" : "Instance Property",
    "modules" : [
      "Core Bluetooth"
    ],
    "preciseIdentifier" : "c:objc(cs)CBPeripheral(py)services"
  },
  "title" : "services"
}
-->

# services

A list of a peripheral’s discovered services.

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

## Discussion

Returns an array of services (represented by [`CBService`](/documentation/CoreBluetooth/CBService) objects) that successful call to the [`discoverServices(_:)`](/documentation/CoreBluetooth/CBPeripheral/discoverServices(_:)) method discovered. If you haven’t yet called the [`discoverServices(_:)`](/documentation/CoreBluetooth/CBPeripheral/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`.

---

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)