Added swift examples in API documentation