Commit Graph
10 Commits
Author SHA1 Message Date
Joseph Kokenge b91dd19c92 SwiftUI Sample Project: Refactor Package terms method to a computed property (#2405)
Note: Not sure if PRs are wanted on Example code.

### Checklist
- [x] If applicable, unit tests
- [ ] If applicable, create follow-up issues for `purchases-android` and
hybrids

### Motivation
Noticed that the terms func was just passing the same `package`.

### Description
Testing: Looks like there are no tests for sample code.

This pull request refactors the terms(for package: Package) method in
the Package extension to a computed property terms. The change not only
improves readability and simplifies access to the package terms, but
also eliminates the need to pass a Package instance to a function that
belongs to the same Package type, which didn't make sense.
By making these changes, we provide a more streamlined and intuitive
approach for developers to access package terms, and eliminate the need
for an explicit method call.
2023-04-13 09:43:10 -03:00
NachoSoto 81c1398f14 [skip-ci] MagicWeatherSwiftUI: removed reference to SubscriptionPeriod.Unit.unknown (#1319)
Was removed in #1235.
2022-02-19 10:16:46 -07:00
NachoSoto d5ee1543c6 [skip-ci] MagicWeatherSwiftUI: removed redundant Package: Identifiable conformance (#1318)
Already exposed by #1268.
2022-02-19 10:16:37 -07:00
aboedo 1cde8c29b0 updated API calls in MagicWeatherSwiftUI (#1192) 2022-01-19 17:38:47 -03:00
NachoSoto e4e49a9bd6 MagicWeatherSwiftUI: fixes for new V4 StoreProduct API (#1072) 2021-12-13 13:21:43 -08:00
NachoSoto a471353116 Using @unknown default to ensure we handle future cases (#963)
I like to take some credit in this https://twitter.com/NachoSoto/status/943880484978769921?s=20
2021-11-18 09:58:17 -08:00
Joshua Liebowitz 271fd11412 Update examples for api updates (#918)
Add deprecations for renamed purchase methods so Xcode can suggest the rename.
Update purchase methods for named completion block instead of _
2021-10-22 15:59:13 -07:00
aboedo e4cf7261ec Update imports (#815)
* import Purchases -> import RevenueCat

* updated Pod name to Purchases

* updated more Pod names
2021-09-03 14:17:37 -03:00
Cody Kerns 9cbe7e239c removes macOS files, makes headers consistent 2021-01-29 14:42:07 -05:00
Cody Kerns d9fa392f39 Initial Magic Weather SwiftUI commit 2021-01-29 14:36:54 -05:00