swift example fixes