create swift binding. it's a stupid code,but i think i can make it smarter.