I created a Swift class for a notification view (UIView) that has an ENUM setup for the type of notification to be set (i.e. for defining colors, text, etc for the different predetermined types of notifications).
I need to be able to call this from my existing Objective-C class, but whenever I put the ENUM in the Swift function arguments, Objective-C can't find that specific function (it is even removed from the "-Swift.h" file.
Is it possible to do this?
Here is my Swift Function:
enum NotificationViewType: Int
{
case Custom = 0
case Success
case Error
case Warning
}
init(inViewController: UIViewController, forType: NotificationViewType, duration: Float = 0.0, leftButtonHandler: () -> Void, rightButtonHandler: () -> Void)
{
....
}