SwifterSwift / SwifterSwift

A handy collection of more than 500 native Swift extensions to boost your productivity.
https://swifterswift.com
MIT License
14.06k stars 1.63k forks source link

StoreKit Extensions #740

Closed omaralbeik closed 4 years ago

omaralbeik commented 5 years ago

Create a new localizedPrice variable to return the localized price string for SKProduct utilizing the priceLocale property.

extension SKProduct {
    /// SwifterSwift: Localized price of `SKProduct`
    var localizedPrice: String? { ... }
}

Steps:

  1. Create a new folder named StoreKit
  2. Create a new file SKProductExtensions file and add the extension in it
  3. Make sure to wrap the extension with #if canImport(StoreKit) ... #endif
  4. Write a test for the extension
  5. Add the new StoreKit subspec to SwifterSwift.podspec
  6. Submit the PR 🚀
lareenmelo commented 5 years ago

Hellooo, I'll give this a try!

omaralbeik commented 5 years ago

Sure @lareenmelo, go for it!

mmdock commented 4 years ago

@lareenmelo you still working on this ? (no rush, just wondering cuz i was kinda curious about working on this. Take your time if you still wanting to do this)

lareenmelo commented 4 years ago

Hi! It's okay you can go ahead and do it, I was currently working on another thing so I had it stack. But you go ahead!