-
Notifications
You must be signed in to change notification settings - Fork 378
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Send delegate messages for all user-initiated dismissals #137
Conversation
* (an interactive pan or a tap on the Close button). | ||
* Reset to `NO` when an interactive dismissal is not in progress. | ||
*/ | ||
@property (nonatomic, getter=isCurrentDismissalUserTriggered) BOOL currentDismissalUserTriggered; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Could you potentially eliminate this intermediate state if both doneButtonTapped:
and didPanWithGestureRecognizer
called through to a common method, hypothetically something like dismissViewControllerAnimated:isUserInitiated:completion:
, passing YES
for isUserInitiated
, while dismissViewControllerAnimated:completion:
calls through to the common method with NO
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
@bcapps 💯
👍 save for the (nice to have) expanded unit test coverage noted in the comment in eff4f08 |
This should've been covered in #128
Although the code looks right, the error message seems to imply that it's expecting ( |
Hm, I must've skimmed over that. I've been looking at OCMock errors too long this morning. …blowing away |
This makes no difference re: the testing glitch I’m seeing in #137 (comment) .
922bdb0 makes no difference. |
in PhotosVCTests
👍 |
Send delegate messages for all user-initiated dismissals
Closes #134.