Skip to content

Instantly share code, notes, and snippets.

@ericjames
Last active August 30, 2021 16:51
Show Gist options
  • Save ericjames/0def2091b7a3da026b69eeb1c2e9a8a3 to your computer and use it in GitHub Desktop.
Save ericjames/0def2091b7a3da026b69eeb1c2e9a8a3 to your computer and use it in GitHub Desktop.
Swift 4 Get Cookie
func readCookie() {
let sharedCookieStorage = HTTPCookieStorage.shared
for cookie in sharedCookieStorage.cookies as [HTTPCookie]! {
print(cookie)
}
}
@jhoanrivers
Copy link

May i get this full code?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment