The Tormented and Cleanskin actress stars in Boyle's upcoming movie Trance, which started production before last year's London Olympics Opening Ceremony.
"Danny Boyle is amazing," Middleton told Metro.
"He was so unaffected by all his success and just brilliant to work with. He had to stop editing Trance in order to do the Olympics."
[James McAvoy as Simon in Trance]
She added: "He's so open, you don't realise he's directing you - he just has a chat with you between takes and is very subtle but, at the same time, gets a very precise result from you.
"He's perfected the art of directing."
Trance was written by Boyle's Trainspotting and Shallow Grave screenwriter John Hodge.
It will also be the director's first film set in London since 28 Days Later and will be released in UK cinemas on March 27, 2013.