Swift wrapper for the Leaf API