Clash Rate Swift Code