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

Missing argument for parameter #2 in call #48

Closed
TimaShams opened this issue Mar 5, 2018 · 9 comments
Closed

Missing argument for parameter #2 in call #48

TimaShams opened this issue Mar 5, 2018 · 9 comments

Comments

@TimaShams
Copy link

screen shot 1439-06-17 at 12 54 21 pm

How to fix this?

@RishabhTayal
Copy link
Collaborator

@TimaShams Which version of swift are you using? Which version of the pod are you using? Are you pointing to a specific branch?

@Halcao
Copy link

Halcao commented Mar 8, 2018

@RishabhTayal I got the same error and I am using the package download from master branch. The error is in ViewController.swift, line 28.
And the prototype of the function is open func animate(_ duration: TimeInterval,_ animation: CAMediaTimingFunction, completion:(()->())?)

@RishabhTayal
Copy link
Collaborator

RishabhTayal commented Mar 8, 2018 via email

@Halcao
Copy link

Halcao commented Mar 8, 2018 via email

@RishabhTayal
Copy link
Collaborator

@Halcao What does your Podfile look like?

@Halcao
Copy link

Halcao commented Mar 9, 2018

@RishabhTayal I am not using Pod. I just downloaded the source code from the master branch.

@RishabhTayal
Copy link
Collaborator

RishabhTayal commented Mar 9, 2018 via email

@sasquatchgit
Copy link

I am using Swift 4 and getting this error

@sasquatchgit
Copy link

sasquatchgit commented Mar 22, 2018

@TimaShams For now, you can solve this by providing an argument. A default CAMediaTimingFunction will do.

button.animate(1, CAMediaTimingFunction(name: kCAMediaTimingFunctionDefault) ){
                        //your completion
}

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

No branches or pull requests

4 participants