add swift implementation

Swift!
Signed-off-by: Andre Dublin <81dublin@gmail.com>
Are you talking about lines 1-6, or the enum?
Also the import can be removed.