I have an enum which is like this declared in my objective-c header file:
typedef NS_ENUM(NSInteger, FontSize) {
VerySmall = 12,
Small = 14,
Medium = 16,
Big = 18
};
Then in my bridging header I import this header.
from my swift code, when I try to declare 'FontSize' as parameter, the compiler says 'Use of undeclared type FontSize'.
From the developer guide, this should be possible. Anyone experiencing the same problem?
I had the same issue and resolved it by doing BOTH of the following:
let fontSize:FontSize = VerySmall
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With