Showing
1 changed file
with
7 additions
and
0 deletions
... | @@ -87,6 +87,13 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -87,6 +87,13 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ |
87 | 87 | ||
88 | // SwiftEventBus.post("couponBarcodePressed", sender: coupons[indexPath.row]) | 88 | // SwiftEventBus.post("couponBarcodePressed", sender: coupons[indexPath.row]) |
89 | 89 | ||
90 | + // Logs | ||
91 | + let couponSetData: swiftApi.CouponSetItemModel? = coupons[indexPath.row].couponset_data | ||
92 | + print("Coupon clicked: " + (coupons[indexPath.row].coupon ?? "")) | ||
93 | + print("Coupon Name clicked: " + (couponSetData?.name ?? "")) | ||
94 | + print("Coupon Description clicked: " + (couponSetData?.short_description ?? "")) | ||
95 | + print("Coupon Expiration clicked: " + (coupons[indexPath.row].expiration ?? "")) | ||
96 | + | ||
90 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 97 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
91 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController | 98 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController |
92 | vc.coupon = coupons[indexPath.row] | 99 | vc.coupon = coupons[indexPath.row] | ... | ... |
-
Please register or login to post a comment