CUID2 in Swift

Hi. I wrote an implementation of cuid2 id generator in swift:

CUID2 is an alternative to GUID which is slightly easier to read for humans, and with a configurable length. Here is an example with the default length of 24 characters: lnapog2xtrbfatrw5qtrpvs6.

To learn more about the algorithm, its pros, cons and so on, please refer to the reference implementation at:

Thank you.