---
title: XPCLiteralValue
framework: xpc
role: symbol
role_heading: Structure
path: xpc/xpcliteralvalue
---

# XPCLiteralValue

A type that bridges Swift literal values to XPC objects for use in dictionary literals.

## Declaration

```swift
struct XPCLiteralValue
```

## Overview

Overview This type enables ergonomic dictionary literal syntax: let dict: XPCDictionary = [     "name": "John",     "age": 30,     "isActive": true,     "score": 95.5 ]

## Topics

### Initializers

- [init(_:)](xpc/xpcliteralvalue/init(_:)-1dqub.md)
- [init(_:)](xpc/xpcliteralvalue/init(_:)-1iznz.md)
- [init(_:)](xpc/xpcliteralvalue/init(_:)-381hb.md)
- [init(_:)](xpc/xpcliteralvalue/init(_:)-75v42.md)
- [init(_:)](xpc/xpcliteralvalue/init(_:)-89roz.md)
- [init(_:)](xpc/xpcliteralvalue/init(_:)-98a24.md)
- [init(_:)](xpc/xpcliteralvalue/init(_:)-nb1u.md)

## Relationships

### Conforms To

- [Copyable](swift/copyable.md)
- [Escapable](swift/escapable.md)
- [ExpressibleByBooleanLiteral](swift/expressiblebybooleanliteral.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
