Publish Swift switch statement