Edoardo Cortese Edoardo Cortese - 7 months ago 166
Swift Question

Accept self-signed certificate with Swift 3

I tried different ways but without success.
With some example from websites i get the following errors.

Argument label [forTrust:] do not match any available overloads:

enter image description here

How can i fix this or use another method?

I'm with Swift 3 and XCode 8.1


In Swift 3, this parameter has been renamed trust instead of forTrust.