Showing
2 changed files
with
24 additions
and
0 deletions
... | @@ -100,6 +100,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ | ... | @@ -100,6 +100,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ |
100 | gift._title = "testTitle" | 100 | gift._title = "testTitle" |
101 | SwiftEventBus.post("gifts", sender: gift) | 101 | SwiftEventBus.post("gifts", sender: gift) |
102 | 102 | ||
103 | + // pacing_visible event | ||
104 | + let pacingEvent = swiftApi.WarplyPacingCardEventModel() | ||
105 | + pacingEvent._isVisible = true | ||
106 | + SwiftEventBus.post("pacing_visible", sender: pacingEvent) | ||
107 | + | ||
103 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) | 108 | let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) |
104 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController | 109 | let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController |
105 | vc.coupon = coupons[indexPath.row] | 110 | vc.coupon = coupons[indexPath.row] | ... | ... |
... | @@ -1200,5 +1200,24 @@ public class swiftApi { | ... | @@ -1200,5 +1200,24 @@ public class swiftApi { |
1200 | } | 1200 | } |
1201 | } | 1201 | } |
1202 | } | 1202 | } |
1203 | + | ||
1204 | + | ||
1205 | + public class WarplyPacingCardEventModel { | ||
1206 | + private var isVisible: Bool | ||
1207 | + | ||
1208 | + public init() { | ||
1209 | + self.isVisible = false | ||
1210 | + | ||
1211 | + } | ||
1212 | + | ||
1213 | + public var _isVisible: Bool { | ||
1214 | + get { // getter | ||
1215 | + return self.isVisible | ||
1216 | + } | ||
1217 | + set(newValue) { //setter | ||
1218 | + self.isVisible = newValue | ||
1219 | + } | ||
1220 | + } | ||
1221 | + } | ||
1203 | 1222 | ||
1204 | } | 1223 | } | ... | ... |
-
Please register or login to post a comment