Swift standard library reference
The modules, types and functions of the Swift standard library. Each entry gives the signature, the release that added it and a link to the official documentation.
- AdditiveArithmetic
- AnyIterator
- AnyKeyPath
- AnySequence
- Array
- ArraySlice
- AutoreleasingUnsafeMutablePointer
- BidirectionalCollection
- BinaryFloatingPoint
- BinaryInteger
- BitwiseCopyable
- Bool
- BorrowingIteratorAdapter
- BorrowingIteratorProtocol
- ByteOrder
- CaseIterable
- Cell
- Character
- ClassMetadata
- ClosedRange
- CodingKey
- CodingKeyRepresentable
- CodingUserInfoKey
- Collection
- CollectionDifference
- CollectionOfOne
- CommandLine
- Comparable
- ConstantVPrintFIntegerFormatting
- ConstantVPrintFInterpolation
- ConstantVPrintFMessage
- ConstCell
- ContiguousArray
- ConvertibleFromBytes
- ConvertibleToBytes
- Copyable
- CustomDebugStringConvertible
- CustomLeafReflectable
- CustomPlaygroundDisplayConvertible
- CustomReflectable
- CustomStringConvertible
- CVaListPointer
- CVarArg
- Decodable
- Decoder
- DecodingError
- DefaultIndices
- DefaultStringInterpolation
- Deinitable
- Dictionary
- DiscontiguousSlice
- Double
- DropFirstSequence
- DropWhileSequence
- Duration
- DurationProtocol
- EmptyCollection
- Encodable
- Encoder
- EncodingError
- EnumeratedSequence
- Equatable
- Error
- Escapable
- ExpressibleByArrayLiteral
- ExpressibleByBooleanLiteral
- ExpressibleByDictionaryLiteral
- ExpressibleByExtendedGraphemeClusterLiteral
- ExpressibleByFloatLiteral
- ExpressibleByIntegerLiteral
- ExpressibleByNilLiteral
- ExpressibleByStringInterpolation
- ExpressibleByStringLiteral
- ExpressibleByUnicodeScalarLiteral
- FixedWidthInteger
- FlattenSequence
- Float
- Float16
- Float80
- FloatingPoint
- FloatingPointClassification
- FloatingPointRoundingRule
- FloatingPointSign
- Hashable
- Hasher
- HeapObject
- Identifiable
- IndexingIterator
- InlineArray
- InstantProtocol
- Int
- Int8
- Int16
- Int32
- Int64
- Int128
- Iterable
- IteratorProtocol
- IteratorSequence
- JoinedSequence
- KeyedDecodingContainer
- KeyedDecodingContainerProtocol
- KeyedEncodingContainer
- KeyedEncodingContainerProtocol
- KeyPath
- KeyValuePairs
- LazyCollectionProtocol
- LazyDropWhileSequence
- LazyFilterSequence
- LazyMapSequence
- LazyPrefixWhileSequence
- LazySequence
- LazySequenceProtocol
- LosslessStringConvertible
- ManagedBufferPointer
- MemoryLayout
- Mirror
- MirrorPath
- MutableCollection
- MutableRawSpan
- MutableRef
- MutableSpan
- Never
- Numeric
- ObjectIdentifier
- OpaquePointer
- Optional
- OptionSet
- OutputRawSpan
- OutputSpan
- PartialKeyPath
- PartialRangeFrom
- PartialRangeThrough
- PartialRangeUpTo
- PrefixSequence
- RandomAccessCollection
- RandomNumberGenerator
- Range
- RangeExpression
- RangeReplaceableCollection
- RangeSet
- RawRepresentable
- RawSpan
- Ref
- ReferenceWritableKeyPath
- Repeated
- Result
- ReversedCollection
- Sendable
- SendableMetatype
- Sequence
- Set
- SetAlgebra
- SignedInteger
- SignedNumeric
- SIMD
- SIMDMask
- SIMDScalar
- SIMDStorage
- SingleValueDecodingContainer
- SingleValueEncodingContainer
- Slice
- Span
- StaticBigInt
- StaticString
- Strideable
- StrideThrough
- StrideThroughIterator
- StrideTo
- StrideToIterator
- String
- StringInterpolationProtocol
- StringProtocol
- Substring
- Swift
- SystemRandomNumberGenerator
- TextOutputStream
- TextOutputStreamable
- UInt
- UInt8
- UInt16
- UInt32
- UInt64
- UInt128
- UnboundedRange_
- UnfoldSequence
- Unicode
- UnicodeCodec
- UnicodeDecodingResult
- UniqueArray
- UniqueBox
- UnkeyedDecodingContainer
- UnkeyedEncodingContainer
- Unmanaged
- UnsafeMutablePointer
- UnsafeMutableRawPointer
- UnsafePointer
- UnsafeRawPointer
- UnsignedInteger
- UTF8Span
- WritableKeyPath
- Zip2Sequence