0

I have an enum defined in Enums.h -

typedef NS_ENUM(NSUInteger, ScreenTypes)
{
    ScreenA = 0,
    ScreenB,
    ScreenC,
    ScreenD
};

Next, I declare a public var of this enum in a Swift class XYZ.swift

public var screenType: ScreenTypes?

However, when I am trying to access screenType from an Objective C view controller class, it gives compile error - Property 'screenType' not found on object of type 'XYZ *'

Please help!!

letsbondiway
  • 470
  • 3
  • 18

0 Answers0