about swift code