Skip to content

Commit

Permalink
feat: iap products bounds
Browse files Browse the repository at this point in the history
  • Loading branch information
Maxwin-z committed May 1, 2022
1 parent 54b4c0d commit bf03633
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion newsmth/more/XDonateViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -94,6 +94,9 @@ class XDonateViewController: SMViewController, SKProductsRequestDelegate, SKPaym
}

func setupViews() {
if (self.products.count == 0) {
return ;
}
// clear
for v in self.view.subviews {
v.removeFromSuperview()
Expand Down Expand Up @@ -138,7 +141,7 @@ class XDonateViewController: SMViewController, SKProductsRequestDelegate, SKPaym
restoreButton.frame = frame
frame.origin.x += 10
self.view.addSubview(restoreButton)

let donateIcons = ["🧋", "🥤"]
for i in 0...(self.products.count - 1) {
let product = self.products[i]
Expand Down

0 comments on commit bf03633

Please sign in to comment.