Useful functions for Swift and Apple Platform SDKs. Basically a jumble of reusable code.
As of now, this has not been stabilized yet, however it is in use in some projects that are live on the App Store. Regardless, use at your own risk!
Unwrap an optional value or throw an error:
let value: Int? = 42
let nonOptional = try Xn.unwrap(value) // nonOptional is of type Int
Print value of the variable with callsite information and return it:
let result = Xn.dbg(42) // Prints "MyModule/MyFile.swift:23 42" in debug builds