---
title: Initialization with Literals
framework: swift
role: collectionGroup
role_heading: API Collection
path: swift/initialization-with-literals
---

# Initialization with Literals

Allow values of your type to be expressed using different kinds of literals.

## Topics

### Collection Literals

- [ExpressibleByArrayLiteral](swift/expressiblebyarrayliteral.md)
- [ExpressibleByDictionaryLiteral](swift/expressiblebydictionaryliteral.md)

### Value Literals

- [ExpressibleByIntegerLiteral](swift/expressiblebyintegerliteral.md)
- [ExpressibleByFloatLiteral](swift/expressiblebyfloatliteral.md)
- [ExpressibleByBooleanLiteral](swift/expressiblebybooleanliteral.md)
- [ExpressibleByNilLiteral](swift/expressiblebynilliteral.md)
- [StaticBigInt](swift/staticbigint.md)

### String Literals

- [ExpressibleByStringLiteral](swift/expressiblebystringliteral.md)
- [ExpressibleByExtendedGraphemeClusterLiteral](swift/expressiblebyextendedgraphemeclusterliteral.md)
- [ExpressibleByUnicodeScalarLiteral](swift/expressiblebyunicodescalarliteral.md)
- [ExpressibleByStringInterpolation](swift/expressiblebystringinterpolation.md)
- [StringInterpolationProtocol](swift/stringinterpolationprotocol.md)
- [DefaultStringInterpolation](swift/defaultstringinterpolation.md)

### Default Types for Literals

- [Default Literal Types](swift/default-literal-types.md)

## See Also

### Tools for Your Types

- [Basic Behaviors](swift/basic-behaviors.md)
- [Encoding, Decoding, and Serialization](swift/encoding-decoding-and-serialization.md)
