---
title: "init(bitPattern:)"
framework: swift
role: symbol
role_heading: Initializer
path: "swift/int8/init(bitpattern:)"
---

# init(bitPattern:)

Creates a new instance with the same memory representation as the given value.

## Declaration

```swift
init(bitPattern x: UInt8)
```

## Parameters

- `x`: A value to use as the source of the new instance’s binary representation.

## Discussion

Discussion This initializer does not perform any range or overflow checking. The resulting instance may not have the same numeric value as bitPattern—it is only guaranteed to use the same pattern of bits in its binary representation.
