i have an Obj-c class "constants.h" that looks like this:
// constants.h
#import <Foundation/Foundation.h>
@interface constants : NSObject
#define kLookAhead 3600*24*7*4 //seconds*hours*days*weeks
end
In my myProduct-Bridging-Header.h, I have:
#import "constants.h"
However, when I call kLookAhead in a Swift class, e.g. like this
let timeInterval = kLookAhead
I get the error message "Use of unresolved identifier 'kLookAhead'"
All other classes that I import in myProduct-Bridging-Header.h are working just fine, and kLookAhead is successfully used in my objc classes.
Is there something I should know?