Manos Chorianopoulos

add WarplyPacingCardEventModel

......@@ -100,6 +100,11 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
gift._title = "testTitle"
SwiftEventBus.post("gifts", sender: gift)
// pacing_visible event
let pacingEvent = swiftApi.WarplyPacingCardEventModel()
pacingEvent._isVisible = true
SwiftEventBus.post("pacing_visible", sender: pacingEvent)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController
vc.coupon = coupons[indexPath.row]
......
......@@ -1201,4 +1201,23 @@ public class swiftApi {
}
}
public class WarplyPacingCardEventModel {
private var isVisible: Bool
public init() {
self.isVisible = false
}
public var _isVisible: Bool {
get { // getter
return self.isVisible
}
set(newValue) { //setter
self.isVisible = newValue
}
}
}
}
......