---
title: variantSelection
framework: usdkit
role: symbol
role_heading: Instance Property
path: usdkit/usdlayer/path/variantselection
---

# variantSelection

The variant set and value if the path’s leaf is a variant selection, otherwise nil.

## Declaration

```swift
var variantSelection: (set: String, variant: String)? { get }
```
