Edoardo Cortese Edoardo Cortese - 27 days ago 30
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

Answer

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