Manos Chorianopoulos

fix navigation

...@@ -20,7 +20,7 @@ import UIKit ...@@ -20,7 +20,7 @@ import UIKit
20 20
21 @IBAction func navigateToCoupon(_ sender: Any) { 21 @IBAction func navigateToCoupon(_ sender: Any) {
22 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 22 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
23 - let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as UIViewController 23 + let vc = storyboard.instantiateViewController(withIdentifier: "CouponViewController") as! SwiftWarplyFramework.CouponViewController
24 self.navigationController?.pushViewController(vc, animated: true) 24 self.navigationController?.pushViewController(vc, animated: true)
25 } 25 }
26 26
......
...@@ -103,7 +103,7 @@ import UIKit ...@@ -103,7 +103,7 @@ import UIKit
103 redeemCouponSetRequest(uuid: couponset?.uuid ?? "") 103 redeemCouponSetRequest(uuid: couponset?.uuid ?? "")
104 104
105 // let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 105 // let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
106 - // let vc = storyboard.instantiateViewController(withIdentifier: "MakeItAPresentViewController") as UIViewController 106 + // let vc = storyboard.instantiateViewController(withIdentifier: "MakeItAPresentViewController") as! SwiftWarplyFramework.MakeItAPresentViewController
107 // self.navigationController?.pushViewController(vc, animated: true) 107 // self.navigationController?.pushViewController(vc, animated: true)
108 } 108 }
109 109
......
...@@ -121,7 +121,7 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -121,7 +121,7 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
121 SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled) 121 SwiftEventBus.post("ccms_enabled", sender: ccmsEnabled)
122 122
123 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 123 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
124 - let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController 124 + let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController
125 vc.coupon = coupons[indexPath.row] 125 vc.coupon = coupons[indexPath.row]
126 self.navigationController?.pushViewController(vc, animated: true) 126 self.navigationController?.pushViewController(vc, animated: true)
127 } 127 }
......
...@@ -85,7 +85,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -85,7 +85,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
85 85
86 public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 86 public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
87 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 87 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
88 - let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! CampaignViewController 88 + let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! SwiftWarplyFramework.CampaignViewController
89 let url = swiftApi().constructCampaignUrl(campaigns[indexPath.row]) 89 let url = swiftApi().constructCampaignUrl(campaigns[indexPath.row])
90 vc.campaignUrl = url 90 vc.campaignUrl = url
91 self.navigationController?.pushViewController(vc, animated: true) 91 self.navigationController?.pushViewController(vc, animated: true)
......
...@@ -86,7 +86,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -86,7 +86,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{
86 public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 86 public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
87 87
88 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 88 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
89 - let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! CampaignViewController 89 + let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! SwiftWarplyFramework.CampaignViewController
90 let url = swiftApi().constructCampaignUrl(campaigns[indexPath.row]) 90 let url = swiftApi().constructCampaignUrl(campaigns[indexPath.row])
91 vc.campaignUrl = url 91 vc.campaignUrl = url
92 self.navigationController?.pushViewController(vc, animated: true) 92 self.navigationController?.pushViewController(vc, animated: true)
......
...@@ -207,7 +207,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{ ...@@ -207,7 +207,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
207 public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) { 207 public func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
208 208
209 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 209 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
210 - let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! CouponBarcodeViewController 210 + let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as! SwiftWarplyFramework.CouponBarcodeViewController
211 vc.coupon = coupons[indexPath.row] 211 vc.coupon = coupons[indexPath.row]
212 self.navigationController?.pushViewController(vc, animated: true) 212 self.navigationController?.pushViewController(vc, animated: true)
213 213
......