---
title: WKUserInterfaceDirectionPolicy
framework: webkit
role: symbol
role_heading: Enumeration
path: webkit/wkuserinterfacedirectionpolicy
---

# WKUserInterfaceDirectionPolicy

The policy that determines the directionality of user interface elements in a web view.

## Declaration

```swift
enum WKUserInterfaceDirectionPolicy
```

## Overview

Overview When WKUserInterfaceDirectionPolicyContent is specified, the directionality of user interface elements is affected by the dir attribute or the direction CSS property. When WKUserInterfaceDirectionPolicySystem is specified, the directionality of user interface elements is affected by the direction of the view.

## Topics

### Direction Policies

- [WKUserInterfaceDirectionPolicy.content](webkit/wkuserinterfacedirectionpolicy/content.md)
- [WKUserInterfaceDirectionPolicy.system](webkit/wkuserinterfacedirectionpolicy/system.md)

### Initializers

- [init(rawValue:)](webkit/wkuserinterfacedirectionpolicy/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

### Selecting user interface directionality

- [userInterfaceDirectionPolicy](webkit/wkwebviewconfiguration/userinterfacedirectionpolicy.md)
