title: How to view the actual objc method signature in swift?
body: <p>Example of code:</p>
  <pre><code>/**
   Device types.
   */
  typedef NS_OPTIONS(NSUInteger, STDeviceType) {
  /**
   The device is not defined.
   */
      STDeviceTypeNone = 0,
  /**
   Real device.
   */
      STDeviceTypeHardware = 1 &lt;&lt; 0,
  /**
   A device simulator.
   */
      STDeviceTypeSimulator  = 1 &lt;&lt; 1
  };
  
  @interface TestSwiftInterface : NSObject
  
  + (void)enableVisibilityErrorIndicatorForDeviceType:(STDeviceType)deviceType;
  
  + (void)enable2VisibilityErrorIndicatorForDeviceType:(YMADeviceType)deviceType;
  
  @end
  </code></pre>
  <p>Where STDeviceType is a full copy of YMADeviceType from <a href="https://cocoapods.org/pods/YandexMobileAds" rel="nofollow noreferrer">YandexMobileAds library</a> and <code>enableVisibilityErrorIndicatorForDeviceType</code> is the same as <code>enable2VisibilityErrorIndicatorForDeviceType</code> (I add one number to one method name to avoid &quot;duplication&quot;).</p>
  <p>Xcode shows swift interface:</p>
  <pre><code>/**
   Device types.
   */
  public struct STDeviceType : OptionSet {
  
      public init(rawValue: UInt)
  
      
      /**
       Real device.
       */
      public static var hardware: STDeviceType { get }
  
      /**
       A device simulator.
       */
      public static var simulator: STDeviceType { get }
  }
  
  open class TestSwiftInterface : NSObject {
  
      
      open class func enableVisibilityErrorIndicator(for deviceType: STDeviceType)
  
      
      open class func enable2VisibilityErrorIndicator(forDeviceType deviceType: Any!)
  }
  </code></pre>
  <p>In the same time code autompletion and compiler works with <code>enable2VisibilityErrorIndicator</code> as if it has signature:</p>
  <pre><code>open class func enable2VisibilityErrorIndicator(for deviceType: YMADeviceType)
  </code></pre>
  <p>There a lot of similar questions how to view objc method signature in swift but no one describes this situation. So how to view the actual method signature if &quot;generated swift interface&quot; is incorrect?</p>