<!--
{
  "availability" : [
    "iOS: 8.0.0 -",
    "iPadOS: 8.0.0 -",
    "macCatalyst: 8.0.0 -",
    "tvOS: 10.0.0 -",
    "visionOS: 1.0.0 -",
    "watchOS: 2.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "HomeKit",
  "identifier" : "/documentation/HomeKit/HMAccessoryDelegate/accessory(_:didUpdateAssociatedServiceTypeFor:)",
  "metadataVersion" : "0.1.0",
  "role" : "Instance Method",
  "symbol" : {
    "kind" : "Instance Method",
    "modules" : [
      "HomeKit"
    ],
    "preciseIdentifier" : "c:objc(pl)HMAccessoryDelegate(im)accessory:didUpdateAssociatedServiceTypeForService:"
  },
  "title" : "accessory(_:didUpdateAssociatedServiceTypeFor:)"
}
-->

# accessory(_:didUpdateAssociatedServiceTypeFor:)

Informs the delegate when the associated service type of a service is modified.

```
optional func accessory(_ accessory: HMAccessory, didUpdateAssociatedServiceTypeFor service: HMService)
```

## Parameters

`accessory`

The accessory.

`service`

The service with a changed service type.

## Discussion

---

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)