add some swift code learning