<!--
{
  "availability" : [
    "iOS: 16.0.0 -",
    "iPadOS: 16.0.0 -",
    "macCatalyst: 16.0.0 -",
    "macOS: 13.0.0 -",
    "tvOS: 16.0.0 -",
    "visionOS: 1.0.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "CreateMLComponents",
  "identifier" : "/documentation/CreateMLComponents/PoseSelector",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "Create ML Components"
    ],
    "preciseIdentifier" : "s:18CreateMLComponents12PoseSelectorV"
  },
  "title" : "PoseSelector"
}
-->

# PoseSelector

A transformer that selects one pose from an array of poses.

```
struct PoseSelector
```

## Topics

### Creating a selector

[`init()`](/documentation/CreateMLComponents/PoseSelector/init())

Creates a pose selector.

[`init(strategy: PoseSelectionStrategy)`](/documentation/CreateMLComponents/PoseSelector/init(strategy:))

Creates a pose selector.

[`init(strategy: PoseSelectionStrategy, confidenceThreshold: Float)`](/documentation/CreateMLComponents/PoseSelector/init(strategy:confidenceThreshold:))

Creates a pose selector.

### Getting the properties

[`var confidenceThreshold: Float`](/documentation/CreateMLComponents/PoseSelector/confidenceThreshold)

A threshold confidence between 0 to 1 for the joints to be considered valid in pose selection. The default value is 0.2.

[`var strategy: PoseSelectionStrategy`](/documentation/CreateMLComponents/PoseSelector/strategy)

Pose selection strategy.

### Performing the transformation

[`func applied(to: [Pose], eventHandler: EventHandler?) -> Pose`](/documentation/CreateMLComponents/PoseSelector/applied(to:eventHandler:))

Select a pose if multiple poses are detected on the same frame.

## Relationships

### Conforms To

[`Copyable`](/documentation/Swift/Copyable)

[`CustomDebugStringConvertible`](/documentation/Swift/CustomDebugStringConvertible)

[`Escapable`](/documentation/Swift/Escapable)

[`Sendable`](/documentation/Swift/Sendable)

[`Transformer`](/documentation/CreateMLComponents/Transformer)

[`SendableMetatype`](/documentation/Swift/SendableMetatype)

---

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)