Closed WhaleWatching closed 8 years ago
@WhaleWatching
What is your setup? Xcode 6/7?
XCode 6
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 {
}
Maybe I didn't add the @IBDesignable
, it's ok in put NibDesignable.swift
to my project way without the @IBDesignable
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...
It is already there in the README.md https://github.com/mbogh/NibDesignable#usage
I'm closing this issue since it has been 26 days since last activity.
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.