Reputation: 533
Why does this happen, and how can I fix it? My ViewController.h file ran perfectly before I imported it in my bridging header.
Upvotes: 0
Views: 288
Reputation: 6635
To define constants in an Objective C header file, you'll want to do something like this:
// header file
FOUNDATION_EXPORT static CGFloat MyNamespaceAlpha;
// implementation file
static CGFloat MyNamespaceAlpha = 0.8f;
Upvotes: 0