mikeMTOL / UIBarButtonItem-Badge

UIBarButtonItem+Badge
945 stars 167 forks source link

Works with Swift? #11

Open basememara opened 9 years ago

basememara commented 9 years ago

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 commented 9 years ago

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

import UIBarButtonItem_Badge