<!--
{
  "availability" : [
    "iOS: 26.5.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "AccessoryTransportExtension",
  "identifier" : "/documentation/AccessoryTransportExtension/AccessoryMessage/Builder/buildEither(first:)",
  "metadataVersion" : "0.1.0",
  "role" : "Type Method",
  "symbol" : {
    "kind" : "Type Method",
    "modules" : [
      "Accessory Transport Extension"
    ],
    "preciseIdentifier" : "s:27AccessoryTransportExtension0A7MessageV7BuilderV11buildEither5firstA2C_tFZ"
  },
  "title" : "buildEither(first:)"
}
-->

# buildEither(first:)

Builds an accessory message from the first branch of a conditional.

```
static func buildEither(first component: AccessoryMessage) -> AccessoryMessage
```

## Parameters

`component`

An accessory message from the first branch.

---

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)