retrieve modal attributes

Hi, here's a change to retrieve the view controller modal attributes.
I've not found a way to set the presentation style and I think the attributes were not set.