TakeScoop / SwiftyButton

Simple and customizable button in Swift
MIT License
552 stars 43 forks source link

Can't create button in IB #9

Closed perryprog closed 7 years ago

perryprog commented 7 years ago

When trying to create a button in IB following the instructions on the README I get the following error:

file:///Users/$USER/Path/To/My/Project/Base.lproj/Main.storyboard: warning: IB Designables: Using class UIButton for object with custom class because the class PressableButton does not exist

I installed via Coccoapods pod 'SwiftyButton' and when typing the buttons class in IB it does autocomplete it and offers it as an option in the list of choices.

screen shot 2017-02-06 at 2 44 43 pm

Any help is appreciated, thanks!

EDIT: To be clear, I did set the button type to custom.

perryprog commented 7 years ago

Oh that's lovely. I never set the Module to SwiftyButton.

ldiqual commented 7 years ago

Fixed in the readme: https://github.com/TakeScoop/SwiftyButton#interface-builder-storyboardxib. Thanks for reporting!

perryprog commented 7 years ago

No problem.