Releases: Shopify/checkout-sheet-kit-swift
Releases · Shopify/checkout-sheet-kit-swift
3.0.0-beta.3
Full Changelog: 3.0.0-beta.2...3.0.0-beta.3
3.0.0-beta.2
Full Changelog: 3.0.0-beta.1...3.0.0-beta.2
3.0.0-beta.1
Full Changelog: 2.0.1...3.0.0-beta.1
2.0.1
2.0.0
New Features
- 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
- Localization has been added for the sheet title. Customize this value by modifying a
shopify_checkout_sheet_title
string in yourLocalizable.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
- The
checkoutDidComplete
delegate method now returns a completed event object, containing details about the order: #128
checkoutDidComplete(event: ShopifyCheckoutSheetKit.CheckoutCompletedEvent) {
print(event.orderDetails.id)
}
spinnerColor
has been replaced bytintColor
:
- ShopifyCheckoutSheetKit.configuration.spinnerColor = .systemBlue
+ ShopifyCheckoutSheetKit.configuration.tintColor = .systemBlue
Deprecations
CheckoutViewController.Representable()
for SwiftUI has been deprecated. Please useCheckoutSheet(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
1.0.1
1.0.0 - General Availability
ShopifyCheckoutSheetKit is now generally available for Swift, Android and React Native - providing the world's highest converting, customizable, one-page checkout.
0.10.1
0.10.0
- Expose Web Pixel events via new
checkoutDidEmitWebPixelEvent
hook - #101, #103, #105, #107, #112 (@josemiguel-alvarez, @kiftio , @markmur) - Send
Sec-Purpose: prefetch
header to identify preload requests - #109 (@kiftio) - Improve caching of preloaded checkout views - #97, #102, #110 (@cianbuckley)
- Improve UX for loading spinner - #111 (@markmur)