---
title: blockSelection()
framework: usdkit
role: symbol
role_heading: Instance Method
platforms: [iOS 27.0+, iPadOS 27.0+, Mac Catalyst 27.0+, macOS 27.0+, tvOS 27.0+, visionOS 27.0+]
path: usdkit/usdprim/variantset/blockselection()
---

# blockSelection()

Blocks the variant selection by authoring an explicit empty value on the current edit target.

## Declaration

```swift
func blockSelection() throws
```

## Discussion

Discussion note: An error if the selection cannot be blocked.
