swift sample