add codes of swift