add topcode swift