The Premier of NSW has resigned because the Independent Commission Against Corruption has opened an investigation into whether she breached public trust by awarding funding to organisations that she and her partner (a NSW MP) had personal interests in.