mbogh / NibDesignable

Elegant way of enabling IBDesignable on your nib-based views
MIT License
342 stars 74 forks source link

The live rendering will not work if NibDesignable is installed by CocoaPods #11

Closed WhaleWatching closed 8 years ago

WhaleWatching commented 9 years ago

XCode will says warning: IB Designables: Ignoring user defined runtime attribute for key.

I founded that before I get crazy, please add it to README.

mbogh commented 9 years ago

@WhaleWatching

What is your setup? Xcode 6/7?

WhaleWatching commented 9 years ago

XCode 6

mbogh commented 9 years ago

Can you share your project?

I just tried using NibDesignable via CocoaPods in a new project and it works.

I had to add @IBDesignable on my custom class as well like shown below..

import UIKit
import NibDesignable

@IBDesignable
class TestView: NibDesignable {

}
WhaleWatching commented 9 years ago

Maybe I didn't add the @IBDesignable, it's ok in put NibDesignable.swift to my project way without the @IBDesignable

WhaleWatching commented 9 years ago

Sorry this mistake is mine, and the File's Owner thing should be highlighted, for starter, it cases uncaughtable exc_bad_access code=2 error...

mbogh commented 9 years ago

It is already there in the README.md https://github.com/mbogh/NibDesignable#usage

mbogh commented 8 years ago

I'm closing this issue since it has been 26 days since last activity.