title: 'result' is inaccessible due to 'internal' protection level
body: <p>I want to create custom framework for universal API request using URLSession. So I have used <a href="https://github.com/GabeTheCoder/SpeedyNetworking" rel="nofollow noreferrer">this</a> link. I will be using this project as a custom framework. So to use that I have changed its access specifier by <code>open</code> .And using <a href="https://www.youtube.com/watch?v=GMYxlkOE35k" rel="nofollow noreferrer">this</a>link I have imported it in my project. And I have done the following code to call post request</p>
  
  <pre><code>import iOSCoreFramework
  
  func callBySpeedyNetworking2() {
      let trylogin = login(username: "****", password: "***")
      SpeedyNetworking.removeToken()
      SpeedyNetworking.postUrl(url: URL(string: GlobalConstants.loginFullURL), model: trylogin) { (response) in
          if !response.success {
              // show a network error
              print("network error ",response.error)
              return
          }
          // successful
          print("RESPONSE 1 ------------&gt; ")
          dump(response.result(model: ModelResponse.self))
          dump(response.jsonResults(model: ModelResponse.self))
      }
  }
  </code></pre>
  
  <p>But it's giving me an error for 'success', 'error' and on the following lines:</p>
  
  <pre><code>dump(response.result(model: ModelResponse.self))
  dump(response.jsonResults(model: ModelResponse.self))
  </code></pre>
  
  <p>From various links I have made changes in <code>SpeedyResponse</code> class by the following</p>
  
  <pre><code>public class SpeedyResponse {
  
  public var success : Bool!
  public var statusCode = 0
  public var error: Error?
  public var data: Data?
  public init (success : Bool, statusCode : Int,error :  Error, data : Data){
      self.success = success
      self.statusCode = statusCode
      self.error = error
      self.data = data
  }
  
  public init(data: Data?, response: URLResponse?, error: Error?) {
      self.error = error
      self.data = data
  
      if let httpResponse = response as? HTTPURLResponse {
          statusCode = httpResponse.statusCode
      }
  
      success = statusCode == 200 &amp;&amp; error == nil &amp;&amp; data != nil ? true : false
  }
  
  public func jsonResults&lt;T&gt;(model: T.Type) -&gt; T? {
      if !success { return nil }
      guard let responseData = data else { return nil }
  
      do {
          return try JSONSerialization.jsonObject(with: responseData) as? T
      } catch {
          return nil
      }
  }
  
  public func result&lt;T: Decodable&gt;(model: T.Type) -&gt; T? {
      if !success { return nil }
      guard let responseData = data else { return nil }
  
      do {
          return try JSONDecoder().decode(model, from: responseData)
      } catch {
          return nil
      }
  }
  
  }
  </code></pre>
  
  <p>But still it wasn't fixed. </p>