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 #1 in call #36

Open
speedoholic opened this issue Jul 10, 2018 · 1 comment
Open

Missing argument for parameter #1 in call #36

speedoholic opened this issue Jul 10, 2018 · 1 comment

Comments

@speedoholic
Copy link

The following line of code in PullToRefreshConst.swift file is causing compile time error when Swift 4.1 is being used as per Build Settings:

self.refreshCompletion?()

Missing argument for parameter #1 in call

Insert '<#Void#>'

@speedoholic
Copy link
Author

Replace ((Void) -> Void)? with (() -> (Void))? = nil

After replacement-
Line 29:
fileprivate var refreshCompletion: (() -> (Void))? = nil

Line 81:
public init(options: PullToRefreshOption, frame: CGRect, refreshCompletion :(() -> (Void))? = nil, down:Bool=true) {

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

1 participant