---
title: WKSelectionGranularity
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/wkselectiongranularity
---

# WKSelectionGranularity

The granularity with which the user can select and modify web view content.

## Declaration

```swift
enum WKSelectionGranularity
```

## Topics

### Getting the Granularity Options

- [WKSelectionGranularity.dynamic](webkit/wkselectiongranularity/dynamic.md)
- [WKSelectionGranularity.character](webkit/wkselectiongranularity/character.md)

### Initializers

- [init(rawValue:)](webkit/wkselectiongranularity/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [Hashable](swift/hashable.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)

## See Also

### Setting selection granularity

- [selectionGranularity](webkit/wkwebviewconfiguration/selectiongranularity.md)
