has no member error with Alamofire 4.0 with Swift 3 <p>I have used Alamofire 4.0 in with Swift 3.0 but getting issue with the following code</p> <blockquote> <p>Type 'Method' (aka 'OpaquePointer') has no member 'GET'</p> <p>Type 'Method' (aka 'OpaquePointer') has no member 'PUT'</p> <p>Type 'Method' (aka 'OpaquePointer') has no member 'POST'</p> <p>Type 'Method' (aka 'OpaquePointer') has no member 'PATCH'</p> <p>Type 'Method' (aka 'OpaquePointer') has no member 'DELETE'</p> </blockquote> <p>Enum definition:</p> <pre><code>enum Method { case get case put case post case patch case delete func toAFMethod() -&gt; Alamofire.Method { switch self { case .get: return Alamofire.Method.GET case .put: return Alamofire.Method.PUT case .post: return Alamofire.Method.POST case .patch: return Alamofire.Method.PATCH case .delete: return Alamofire.Method.DELETE } } } </code></pre>