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

Works with Swift? #11

Open
basememara opened this issue Jun 11, 2015 · 1 comment
Open

Works with Swift? #11

basememara opened this issue Jun 11, 2015 · 1 comment

Comments

@basememara
Copy link

I couldn't get this to work with Swift. The extensions on the buttons aren't recognized, such as badgeValue isn't found on the button. I think because there are special characters in the namespace so I can't import it (import UIBarButtonItem-Badge). Anyone got this to work with Swift that you can post a sample? I install it with CocoaPods.

@joeblau
Copy link

joeblau commented Jul 19, 2015

It works; The correct syntax for importing categories is to use an underscore.

import UIBarButtonItem_Badge

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

2 participants