<!--
{
  "availability" : [
    "iOS: 17.4.0 -",
    "iPadOS: 17.4.0 -",
    "macOS: -",
    "tvOS: 17.4.0 -",
    "visionOS: 1.1.0 -"
  ],
  "documentType" : "symbol",
  "framework" : "BrowserEngineKit",
  "identifier" : "/documentation/BrowserEngineKit/BESelectionFlags",
  "metadataVersion" : "0.1.0",
  "role" : "Structure",
  "symbol" : {
    "kind" : "Structure",
    "modules" : [
      "BrowserEngineKit"
    ],
    "preciseIdentifier" : "c:@E@BESelectionFlags"
  },
  "title" : "BESelectionFlags"
}
-->

# BESelectionFlags

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

```
struct BESelectionFlags
```

## Overview

The [`BETextInput`](/documentation/BrowserEngineKit/BETextInput) protocol provides your app an instance of this structure as an argument to the  [`adjustSelectionBoundary(to:touchPhase:baseIsStart:flags:)`](/documentation/BrowserEngineKit/BETextInput/adjustSelectionBoundary(to:touchPhase:baseIsStart:flags:)) callback.

## Topics

### Describing a text selection

[`BESelectionFlagsNone`](/documentation/BrowserEngineKit/BESelectionFlags/BESelectionFlagsNone)

An option that indicates no active flags.

[`phraseBoundaryChanged`](/documentation/BrowserEngineKit/BESelectionFlags/phraseBoundaryChanged)

A flag that indicates whether a text selection crosses or modifies phrase boundaries in an active selection.

[`selectionFlipped`](/documentation/BrowserEngineKit/BESelectionFlags/selectionFlipped)

A flag that indicates whether a text selection is reversed or flipped in direction from its original direction.

[`wordIsNearTap`](/documentation/BrowserEngineKit/BESelectionFlags/wordIsNearTap)

A flag that indicates whether a word resides near the person’s tap gesture.

### Creating a selection flag

[`init(rawValue:)`](/documentation/BrowserEngineKit/BESelectionFlags/init(rawValue:))

Creates a selection flags instance with the given underlying value.



---

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)