Skip to content

Formkunft/swift-byte-symbols

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Swift Byte Symbols

A simple Swift package that exposes an ASCII namespace with named constants for the 128 ASCII code points.

Using Swift Byte Symbols in your project

Add swift-byte-symbols as a dependency to your package:

let package = Package(
    // ...
    dependencies: [
        .package(url: "https://github.com/Formkunft/swift-byte-symbols.git", .upToNextMajor(from: "2.0.0")),
    ],
    targets: [
        .target(
            // ...
            dependencies: [
                .product(name: "ByteSymbols", package: "swift-byte-symbols"),
            ]),
    ]
)

Then, import ByteSymbols in your code:

import ByteSymbols

// ...

About

Swift package with named UInt8 constants for the ASCII code points.

Topics

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages