Shopify / mobile-buy-sdk-ios

Shopify’s Mobile Buy SDK makes it simple to sell physical products inside your mobile app. With a few lines of code, you can connect your app with the Shopify platform and let your users buy your products using Apple Pay or their credit card.
MIT License
452 stars 199 forks source link

Fix queries sample code in README #983

Closed chriscomeau closed 5 years ago

chriscomeau commented 5 years ago

What this does

Fix queries sample code in README that didn't seem to compile in my test app (to learn the Buy SDK), using Xcode 10.2 and Swift 5.0.

Compilation error message I had: "Contextual type for closure argument list expects 1 argument, which cannot be implicitly ignored"

Note: This is new pull request in the correct "develop" branch. I had previously made a pull request in "master" (https://github.com/Shopify/mobile-buy-sdk-ios/pull/982).

<# Describe your changes #>

Added a missing "$0" to a call to "Storefront.buildQuery" in the Queries sections of the README tutorial.

Fixes <# issue number #>