Skip to content
This repository has been archived by the owner on Jan 14, 2021. It is now read-only.

Xcode 8.3 Invalid Redeclaration of Gif #56

Closed
toddgower-hiatus opened this issue Apr 4, 2017 · 2 comments
Closed

Xcode 8.3 Invalid Redeclaration of Gif #56

toddgower-hiatus opened this issue Apr 4, 2017 · 2 comments

Comments

@toddgower-hiatus
Copy link

After upgrading to Xcode 8.3, I'm getting a compilation error on the method declaration for gif(_ url: String) that says

Method 'gif' with Objective-C selector 'gif:' conflicts with previous declaration with the same Objective-C selector

And also on gif(_ name: String) I'm getting another error that says

Invalid redeclaration of 'gif'

Seems straightforward since Objective-C doesn't support method overloading and the class is extending the Objective-C class UIImage. Just wondering why this wasn't an issue before the upgrade.

@toddgower-hiatus
Copy link
Author

Never mind, issue fixed itself. Don't know if the swift 3.0 syntax converter goofed things up.

@toddgower-hiatus
Copy link
Author

If anyone else has this issue, all you need to do is remove the underscores that allow you to omit the param names. Like this:
gif(data: String)
gif(name: String)
gif(url: String)

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

No branches or pull requests

1 participant