swift3 - swift 3 - HTTPCookieStorage cookies for url cannot call -


i'm trying fetch array of cookies specified url , following error:

cannot call value of non-function type '[httpcookie]?' 

this syntax:

        if let cookies = httpcookiestorage.shared.cookies(for: baseurl) {              cookie in cookies {              }          } 

what's problem?


Comments

Popular posts from this blog

asp.net - How to correctly use QUERY_STRING in ISAPI rewrite? -

jsf - "PropertyNotWritableException: Illegal Syntax for Set Operation" error when setting value in bean -

arrays - Algorithm to find ideal starting spot in a circle -