A simple Swift package that exposes an ASCII
namespace with named constants for the 128 ASCII code points.
Add swift-byte-symbols
as a dependency to your package:
let package = Package(
// ...
dependencies: [
.package(url: "https://github.com/Formkunft/swift-byte-symbols", .upToNextMajor(from: "2.0.0")),
],
targets: [
.target(
// ...
dependencies: [
.product(name: "ByteSymbols", package: "swift-byte-symbols"),
]),
]
)
Then, import ByteSymbols
in your code:
import ByteSymbols
// ...