Skip to content

A class that displays contents of the Swift String.Index type

License

Notifications You must be signed in to change notification settings

anpol/swift-string-index-debug-view

Repository files navigation

SwiftStringIndexDebugView

A class that displays contents of the Swift String.Index type.

Installation

Use the Swift package manager to attach this package as a dependency.

Then import it as usual:

import SwiftStringIndexDebugView

Quick Start

Assuming you have a variable index of type String.Index, you can print its debugView property:

print(index.debugView)

The output is follows:

StringIndexDebugView(encodedOffset: 5, transcodedOffset: 0, scalarAligned: true, characterStride: 1)

About

A class that displays contents of the Swift String.Index type

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages