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

# init(bitPattern:)

Creates a new OpaquePointer from the given address, specified as a bit pattern.

## Declaration

```swift
init?(bitPattern: UInt)
```

## Parameters

- `bitPattern`: A bit pattern to use for the address of the new pointer. If bitPattern is zero, the result is nil.
