Skip to content

Releases: Shopify/checkout-sheet-kit-swift

3.0.0-beta.1

10 May 11:24
ec1978a
Compare
Choose a tag to compare
3.0.0-beta.1 Pre-release
Pre-release

Full Changelog: 2.0.1...3.0.0-beta.1

2.0.1

19 Mar 12:12
eb2df08
Compare
Choose a tag to compare

What's Changed

Full Changelog: 2.0.0...2.0.1

2.0.0

18 Mar 15:46
1895d9a
Compare
Choose a tag to compare

New Features

  1. The loading spinner has been replaced by a progress bar on the webview. This will result in a faster perceived load time for checkout because the SDK will no longer wait for full page load to show the DOM content. #129
  2. Localization has been added for the sheet title. Customize this value by modifying a shopify_checkout_sheet_title string in your Localizable.xcstrings file. #138
{
  "sourceLanguage" : "en",
  "strings" : {
    "shopify_checkout_sheet_title" : {
      "comment" : "The title of the checkout sheet.",
      "extractionState" : "manual",
      "localizations" : {
        "en" : {
          "stringUnit" : {
            "state" : "translated",
            "value" : "Checkout"
          }
        },
      }
    }
  }
}

Breaking Changes

  1. The checkoutDidComplete delegate method now returns a completed event object, containing details about the order: #128
checkoutDidComplete(event: ShopifyCheckoutSheetKit.CheckoutCompletedEvent) {
  print(event.orderDetails.id)
}
  1. spinnerColor has been replaced by tintColor:
- ShopifyCheckoutSheetKit.configuration.spinnerColor = .systemBlue
+ ShopifyCheckoutSheetKit.configuration.tintColor = .systemBlue

Deprecations

  1. CheckoutViewController.Representable() for SwiftUI has been deprecated. Please use CheckoutSheet(checkout:) now instead.
.sheet(isPresented: $isShowingCheckout, onDismiss: didDismiss) {
-  CheckoutViewController.Representable(checkout: $checkoutURL, delegate: eventHandler)
-    .onReceive(eventHandler.$didCancel, perform: { didCancel in
-      if didCancel {
-        isShowingCheckout = false
-      }
-    })
+  CheckoutSheet(checkout: $checkoutURL)
+    .title("Custom title")
+    .colorScheme(.automatic)
+    .backgroundColor(.black)
+    .tintColor(.systemBlue)
+    .onCancel {
+       isShowingCheckout = false
+    }
+    .onComplete { }
+    .onPixelEvent { }
+    .onFail { }
+    .onLinkClick { }
}

1.0.2

05 Mar 11:08
5727afb
Compare
Choose a tag to compare

What's Changed

  • Prevent retaining the scripthandler / webview by @kiftio in #143

Full Changelog: 1.0.1...1.0.2

1.0.1

31 Jan 11:41
3b44fe8
Compare
Choose a tag to compare
  • Bumps the package version number

1.0.0 - General Availability

31 Jan 11:03
4fba1f6
Compare
Choose a tag to compare

ShopifyCheckoutSheetKit is now generally available for Swift, Android and React Native - providing the world's highest converting, customizable, one-page checkout.

0.10.1

26 Jan 14:45
5e12b52
Compare
Choose a tag to compare
0.10.1 Pre-release
Pre-release

0.10.0

26 Jan 12:33
9e1d534
Compare
Choose a tag to compare
0.10.0 Pre-release
Pre-release

0.9.0 - ShopifyCheckoutSheetKit

10 Jan 10:16
6b05ad3
Compare
Choose a tag to compare
Pre-release
  • Breaking Changes: The library has been rebranded from Shopify Checkout Kit to Shopify Checkout Sheet Kit. Apologies for any inconvenience caused. Here are the steps to upgrade:
  1. Update the imports throughout your codebase:
- import ShopifyCheckoutKit
+ import ShopifyCheckoutSheetKit
  1. Update the present|preload|configure() calls throughout your codebase:
- ShopifyCheckoutKit.present|preload|configure()
+ ShopifyCheckoutSheetKit.present|preload|configure()
  1. (Optional) Update your Podfile (if you're using cocoapods):
- pod "ShopifyCheckoutKit", "~> 0.8"
+ pod "ShopifyCheckoutSheetKit", "~> 0.9"

0.8.1

20 Dec 17:00
c4af2e9
Compare
Choose a tag to compare
0.8.1 Pre-release
Pre-release
  • Emit presented message to checkout when sheet is raised (preparation for analytics support) #81