Julia Gillard continued to differ as to the extent of Gillard's foreknowledge and planning of the replacement of Rudd. Rudd initially said that he would challenge Gillard, but it soon became apparent that he did not have enough support within the party to survive in his position. Hours before the vote on 24 June, he resigned as Prime Minister and Leader of the Labor Party, leaving Gillard to assume the leadership unopposed. Treasurer Wayne Swan was at the same time elected unopposed to succeed Gillard as Deputy Leader. Shortly afterward, Gillard was sworn in as the 27th Prime Minister of Australia by
Julia Gillard February 2012. Rudd told the media "I can only serve as Foreign Minister if I have the confidence of Prime Minister Gillard and her senior ministers" after Gillard failed to repudiate cabinet ministers who publicly criticised Rudd and his tenure as Prime Minister. The situation had been further exacerbated by the revelation on "Four Corners" that Gillard's staff wrote her victory speech for the 2010 leadership election two weeks prior to her challenge, contradicting Gillard's earlier claims that she had only resolved to challenge Rudd the day before the vote. This revelation caused particular conflict between Labor factions to surface,