A newbie to swift
I'm doing a mixed-language (Swift & Objective-C) program, and encounter an error when trying to import Swift into Objective-C
here is my code
@objc public enum ItemType: Int {
case left, right
}
public class MyClass {
@objc var items: [ItemType] = []
}
Here is the error enter image description here
It seems that there's something wrong about the ItemType
but I do see the definition of ItemType
in my -swift.h
file
Could any one give me a hint?