Update swift code.