Creates an instance initialized to the specified integer value.
SDK
- Xcode 9.0+
Framework
- Swift Standard Library
Declaration
Parameters
value
The value to create.
Discussion
Do not call this initializer directly. Instead, initialize a variable or constant using an integer literal. For example:
In this example, the assignment to the x
constant calls this integer literal initializer behind the scenes.
Note
This documentation comment was inherited from Expressible
.