mirror of
https://github.com/RevenueCat/purchases-ios
synced 2026-11-11 22:55:55 +05:45
For [CSDK-626]. [CSDK-626]: https://revenuecats.atlassian.net/browse/CSDK-626?atlOrigin=eyJpIjoiNWRkNTljNzYxNjVmNDY3MDlhMDU5Y2ZhYzA5YTRkZjUiLCJwIjoiZ2l0aHViLWNvbS1KU1cifQ
32 lines
740 B
Swift
32 lines
740 B
Swift
//
|
|
// TransactionsView.swift
|
|
// PurchaseTester
|
|
//
|
|
// Created by Josh Holtz on 2/3/22.
|
|
//
|
|
|
|
import Foundation
|
|
import SwiftUI
|
|
import RevenueCat
|
|
|
|
struct TransactionsView: View {
|
|
|
|
let customerInfo: CustomerInfo
|
|
|
|
var body: some View {
|
|
ScrollView {
|
|
VStack(alignment: .leading, spacing: 10) {
|
|
ForEach(self.customerInfo.nonSubscriptions) { transaction in
|
|
VStack(alignment: .leading, spacing: 0) {
|
|
Text("\(transaction.productIdentifier)")
|
|
.bold()
|
|
Text("\(transaction.purchaseDate.formatted()))")
|
|
}
|
|
}
|
|
}
|
|
}
|
|
.padding(.horizontal, 20)
|
|
}
|
|
|
|
}
|