---
title: BESelectionFlags
framework: browserenginekit
role: symbol
role_heading: Structure
path: browserenginekit/beselectionflags
---

# BESelectionFlags

Flags that indicate different states or characteristics of a text selection.

## Declaration

```swift
struct BESelectionFlags
```

## Overview

Overview The BETextInput protocol provides your app an instance of this structure as an argument to the  adjustSelectionBoundary(to:touchPhase:baseIsStart:flags:) callback.

## Topics

### Describing a text selection

- [phraseBoundaryChanged](browserenginekit/beselectionflags/phraseboundarychanged.md)
- [selectionFlipped](browserenginekit/beselectionflags/selectionflipped.md)
- [wordIsNearTap](browserenginekit/beselectionflags/wordisneartap.md)

### Creating a selection flag

- [init(rawValue:)](browserenginekit/beselectionflags/init(rawvalue:).md)

## Relationships

### Conforms To

- [BitwiseCopyable](swift/bitwisecopyable.md)
- [Equatable](swift/equatable.md)
- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [OptionSet](swift/optionset.md)
- [RawRepresentable](swift/rawrepresentable.md)
- [Sendable](swift/sendable.md)
- [SendableMetatype](swift/sendablemetatype.md)
- [SetAlgebra](swift/setalgebra.md)

## See Also

### Text selection

- [BETextSelectionDirectionNavigation](browserenginekit/betextselectiondirectionnavigation.md)
- [BESelectionTouchPhase](browserenginekit/beselectiontouchphase.md)
