I am trying to move a swift file that I exported from PaintCode 2 into my project. I did the following.
- Exported the project via PaintCode
- Moved the file into Xcode
- On my storyboard I put a UIView
- Clicked on the newly created UIView and selected the class that I imported from PaintCode.
Now I am looking a white box:
Now the file I got from PaintCode was of type NSObject which I knew couldn't be right so I changed it to UImage. Still getting the same result.
---------UPDATE-----------
I created a new Cococa Class of type UIView, and did the following:
@IBDesignable
class CareerButtonClass: UIView {
//CareerButton.drawCanvas2()
func drawCareerButton() {
CareerButton.drawCanvas2()
}
}
Then I named the custom class on IUView in the storyboard CareerButtonClass.
Here are what my files look like:
Still getting the same result.