Swiftpack.co - dmytriigolovanov/http-cookie-sync-ios as Swift Package

Swiftpack.co is a collection of thousands of indexed Swift packages. Search packages.
See all packages published by dmytriigolovanov.
dmytriigolovanov/http-cookie-sync-ios v1.2.0
HTTPCookie Sync iOS
⭐️ 0
🕓 1 week ago
.package(url: "https://github.com/dmytriigolovanov/http-cookie-sync-ios.git", from: "v1.2.0")

HTPCookieSync iOS

HTTPCookieSync is an iOS framework that allows to synchronize cookies between HTTPCookieStorage and WebKit's WKHTTPCookieStore.


  • iOS 11.0+
  • Swift 5.3+


Swift Package Manager

To integrate using Swift Package Manager perform the following steps:

  1. Select File > Swift Packages > Add Package Dependency
  2. Enter https://github.com/braintree/popup-bridge-ios as the repository URL.
  3. Select HTTPCookieSync.

Package is automatically linked as a framework to the project's target.

See General > Frameworks, Libraries, and Embedded Content.


To integrate using CocoaPods perform the following steps:

  1. Integrate CocoaPods to your project
  2. Add the following line to your podfile
  pod 'HTTPCookieSync'


Quick Start

  1. Create HTTPCookieSyncer instance, default or custom.
  2. Call sync() method, when it needed.
let httpCookieSyncer = HTTPCookieSyncer.default


httpCookieSyncer.syncStorages {
    // cookies were synced

NOTE: Syncer instance must be stored (for application session) due to synchronization algorithm.

Default syncer

Storages, used for default instances:

Syncer with custom storages

let httpCookieSyncer = HTTPCookieSyncer(
    storages: [
        // Custom cookie storages


You can look at the provided demo application. Check the Demo directory.


Dmytrii Golovanov, Vladyslav Otsevyk, Serhii Reznichenko


Library is available under the MIT license. See the LICENSE file for more info.


Stars: 0
Last commit: 1 week ago
jonrohan Something's broken? Yell at me @ptrpavlik. Praise and feedback (and money) is also welcome.

Release Notes

HTTPCookieSync v1.2.0
1 week ago
  • Added demo application
  • Added core
  • Updated sync algorithm

Swiftpack is being maintained by Petr Pavlik | @ptrpavlik | @swiftpackco | API | Analytics