title: Swift errors: 'manager()' is unavailable: use object construction 'AFHTTPRequestOperationManager()'
body: <p>I have this swift code that I think should work but it can't handle objective c static fields. I have tried to add "()" multiple places but nothing works.</p>
  
  <pre><code>func AFHTTPRequestOperationManagerDispatchOnMainQueue(mainQueue: Bool) -&gt; AFHTTPRequestOperationManager {
      var manager = AFHTTPRequestOperationManager.manager
      manager.responseSerializer = AFJSONResponseSerializer(readingOptions: NSJSONReadingOptions.AllowFragments)
      manager.requestSerializer = AFJSONRequestSerializer(readingOptions: NSJSONReadingOptions.AllowFragments)
      if (!mainQueue) {
          manager.completionQueue = dispatch_get_global_queue(DISPATCH_QUEUE_PRIORITY_DEFAULT, 0)
      }
      return manager;
  }
  </code></pre>
  
  <p>The field and properties looks like this:</p>
  
  <pre><code>+ (instancetype)manager;
  @property (nonatomic, strong) AFHTTPRequestSerializer &lt;AFURLRequestSerialization&gt; * requestSerializer;
  @property (nonatomic, strong) AFHTTPResponseSerializer &lt;AFURLResponseSerialization&gt; * responseSerializer;
  </code></pre>
  
  <p>I get those error messages:</p>
  
  <blockquote>
    <p>Error: 'manager()' is unavailable: use object construction
    'AFHTTPRequestOperationManager()' <br/>Error: '() ->
    AFHTTPRequestOperationManager!' does not have a member named
    'responseSerializer' <br/>Error: '() -> AFHTTPRequestOperationManager!'
    does not have a member named 'requestSerializer' <br/>Error: '() ->
    AFHTTPRequestOperationManager!' does not have a member named
    'completionQueue' <br/>Error: function produces expected type
    'AFHTTPRequestOperationManager!'; did you mean to call it with '()'?</p>
  </blockquote>