Swift adaption of codepath ios guides