Skip to content

Instance Property

endIndex

iOS 8.0+ iPadOS 8.0+ Mac Catalyst 8.0+ macOS 10.10+ tvOS 9.0+ watchOS 2.0+
The end Index into the data.
var endIndex: Data.Index { get }

Discussion

This is the “one-past-the-end” position—that is, the position one greater than the last valid subscript argument.