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 put her in office". On 21 January 2012, Wilkie announced that he was withdrawing his support for the Gillard Government after it broke the agreement he had signed with Gillard to implement mandatory pre-commitment for all poker machines by 2014. He stated that he would support the government's alternative plan to trial pre-commitment in the ACT and require that pre-commitment technology be installed in all poker machines built from 2013, but that this fell short of what he had been promised in return for supporting the government. In response, Gillard and Minister for Families, Housing, Community Services and Indigenous Affairs