-
Notifications
You must be signed in to change notification settings - Fork 109
Improved modal detection #36
base: master
Are you sure you want to change the base?
Conversation
…are in the navigationcontroller stack
Hi @harlanhaskins, i think this could lead to problems, if you use a a other presentation style, or? Best, Felix |
Hi x2on, I'm not sure the modalPresentationStyle will affect this... Right now, I'm using FSImageViewerViewController inside a modal that was presented using UIModalPresentationStyleOverCurrentContext. This only checks to make sure it's the only thing in the navigation hierarchy before presenting the 'Done' button vs. back button. |
Wouldn't it be better to check if |
That's a good point -- I can make that change |
Any news? |
…ck for number of view controllers in navigation controller.
Totally forgot! I updated the PR. |
The travis build is broken - i will have a look at it. |
Any chance we can merge this? |
Could you please merge current master into your branch? |
I was running across this as well. A done button would be incorrectly presented in certain circumstances. After making this change, the issue has gone away. Has this change been successfully merged into master? |
Any news about merging? |
Oh, my apologies. I'll do this later today! |
Trying to push this view controller onto a navigation stack that's already being presented causes a 'Done' button. This new method only puts on a done button if the FSImageViewerViewController is the only view controller in the navigation stack.