Add sample swift code