A type that represents an integer literal.
SDK
- Xcode 9.3+
Framework
- Swift Standard Library
A type that represents an integer literal.
SDK
Framework
init()Creates a new value equal to zero.
init(integerLiteral : Int)Creates an instance initialized to the specified integer value.
func distance(to: Int) -> IntReturns the distance from this value to the given value, expressed as a stride.
func advanced(by: Int) -> IntReturns a value that is offset the specified distance from this value.