Skip to content

Commit

Permalink
Updated the workaround to Swift 3
Browse files Browse the repository at this point in the history
  • Loading branch information
Abeansits authored May 18, 2017
1 parent 89ec667 commit a8e4a5d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions Workarounds.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,10 @@
The most common issue requests don't get logged is the use of a custom NSURLSession (search for "NSURLSession" or "NSURLSessionConfiguration" in your code or in the 3rd party library's code).
In this case you must add the following in the default configuration

#### Swift
#### Swift 3
<pre>
let configuration = NSURLSessionConfiguration.defaultSessionConfiguration()
configuration.protocolClasses?.insert(NFXProtocol.self, atIndex: 0)
let configuration = URLSessionConfiguration.default
configuration.protocolClasses?.insert(NFXProtocol.self, at: 0)
</pre>

#### Obj-C
Expand Down

0 comments on commit a8e4a5d

Please sign in to comment.