Skip to content
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

add (id)parameter to draggingBlocks. UIView self can be called in draggingBlocks #22

Merged
merged 3 commits into from Mar 31, 2016

Conversation

jeffssss
Copy link
Contributor

In my situation, I need to change UIView itself in draggingBlocks. And I think add (id self) in draggingBlocks is helpful.

I'm not sure if there is any problem with it, and these code run well in my app. If I'm wrong , please tell me. Thank you

@andreamazz
Copy link
Owner

Hi @jeffssss
The PR looks good, but I rather use typed parameters instead of id. So that would be UIView.
Also, can you update the test suite? If you're not too confident with it I can do it instead, let me know.

@jeffssss
Copy link
Contributor Author

You are right. Typed parameters UIView is better. And I'm glad to do this. One question is that, What is test suite ? (my poor english T_T) Is that means I need to update UIViewDraggableDemo code to show this feature ?

@jeffssss
Copy link
Contributor Author

I didn't use Test before but I'll try my best. Please review my code after I finish this part of test suite. Thank you for your patience.

@andreamazz
Copy link
Owner

No problem, thanks for your work 👍

@jeffssss
Copy link
Contributor Author

I modify 3 cases you mentioned before and add should call dragging moved block case in Test file. And "Test success" is shown after I run the test. I think it's ok.

One question is, after I fork this project and open UIViewDraggableDemo.xcworkspace, an error occurred: "Expecta+Snapshots/EXPMatchers+FBSnapshotTest.h" file not found in UIViewDraggableDemoTests.m.
There's something wrong with environment setting. And I solve this by delete use_frameworks! in Podfile and use 'pod install' to rebuild xcworkspace file. But it's not the right way to solve this problem. Do you have any good solution?

@andreamazz andreamazz merged commit 4a3cc2b into andreamazz:master Mar 31, 2016
@andreamazz
Copy link
Owner

👍

@andreamazz
Copy link
Owner

Merged and released in 1.1.0

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants