0

I'm trying to use an objective C library, in a objective C i'm using it like this :

 [animationView setDraggingMovedBlock:^(UIView * view){
   //some code
}];

I don't know how to call it in a swift class.

3
  • try if it solves your problem I am not sure but may be it'll help you animationView.draggingMovedBlock = {(_ view: UIView?) -> Void in //some code } Commented May 28, 2018 at 12:13
  • works like a charm thks Commented May 28, 2018 at 12:19
  • okay posting as a answer please vote and accept :) Commented May 28, 2018 at 12:20

1 Answer 1

2

you can try this:

  animationView.draggingMovedBlock = {(_ view: UIView?) -> Void in
     //some code
  }
Sign up to request clarification or add additional context in comments.

Comments

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.