Transition to swift