Swift 4.2: Kingfisher can't reload image? try this Solution

Problem: i use kingfisher and can't reload image, how to fix it ?

solution if it was http or https i remembered that you have to enable http in xcode now because of the security has blocked a cleartext HTTP.

setting in your info.plist

<key>NSAppTransportSecurity</key>
<dict>
    <key>NSAllowsArbitraryLoads</key>
    <true/>
    <key>NSExceptionDomains</key>
    <dict>
        <key>example.com</key>
        <dict>
            <key>NSExceptionAllowsInsecureHTTPLoads</key>
            <true/>
            <key>NSIncludesSubdomains</key>
            <true/>
        </dict>
    </dict>

</dict>




Buy me a coffeeBuy me a coffee

No comments: