Manos Chorianopoulos

fix image bundles

...@@ -6,7 +6,7 @@ ...@@ -6,7 +6,7 @@
6 // 6 //
7 7
8 import UIKit 8 import UIKit
9 -import WarplySDKFrameworkIOS 9 +//import WarplySDKFrameworkIOS
10 import RSBarcodes_Swift 10 import RSBarcodes_Swift
11 import AVFoundation 11 import AVFoundation
12 12
...@@ -42,7 +42,7 @@ import AVFoundation ...@@ -42,7 +42,7 @@ import AVFoundation
42 setBackButton() 42 setBackButton()
43 setNavigationTitle("Εκπτωτικό κουπόνι") 43 setNavigationTitle("Εκπτωτικό κουπόνι")
44 44
45 - backgroundImage.image = UIImage(named: "coupons_scrollview_white", bundle: Bundle(for: MyEmptyClass.self)) 45 + backgroundImage.image = UIImage(named: "coupons_scrollview_white", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
46 46
47 scrollView.clipsToBounds = true 47 scrollView.clipsToBounds = true
48 scrollView.layer.cornerRadius = 30 48 scrollView.layer.cornerRadius = 30
...@@ -99,12 +99,12 @@ import AVFoundation ...@@ -99,12 +99,12 @@ import AVFoundation
99 let targetSize = CGSize(width: termsTextView.frame.width, height: CGFloat(MAXFLOAT)) 99 let targetSize = CGSize(width: termsTextView.frame.width, height: CGFloat(MAXFLOAT))
100 termsTextViewHeight.constant = termsTextView.sizeThatFits(targetSize).height 100 termsTextViewHeight.constant = termsTextView.sizeThatFits(targetSize).height
101 101
102 - termsButton.setImage(UIImage(named: "ic_up_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal) 102 + termsButton.setImage(UIImage(named: "ic_up_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
103 } else { 103 } else {
104 termsTextView.isHidden = true 104 termsTextView.isHidden = true
105 termsTextViewHeight.constant = CGFloat(0) 105 termsTextViewHeight.constant = CGFloat(0)
106 106
107 - termsButton.setImage(UIImage(named: "ic_down_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal) 107 + termsButton.setImage(UIImage(named: "ic_down_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
108 } 108 }
109 } 109 }
110 110
......
...@@ -29,7 +29,7 @@ import UIKit ...@@ -29,7 +29,7 @@ import UIKit
29 setBackButton() 29 setBackButton()
30 setNavigationTitle("Εκπτωτικό κουπόνι") 30 setNavigationTitle("Εκπτωτικό κουπόνι")
31 31
32 - backgroundImage.image = UIImage(named: "coupons_scrollview_white", bundle: Bundle(for: MyEmptyClass.self)) 32 + backgroundImage.image = UIImage(named: "coupons_scrollview_white", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
33 33
34 scrollView.clipsToBounds = true 34 scrollView.clipsToBounds = true
35 scrollView.layer.cornerRadius = 30 35 scrollView.layer.cornerRadius = 30
...@@ -60,12 +60,12 @@ import UIKit ...@@ -60,12 +60,12 @@ import UIKit
60 let targetSize = CGSize(width: termsTextView.frame.width, height: CGFloat(MAXFLOAT)) 60 let targetSize = CGSize(width: termsTextView.frame.width, height: CGFloat(MAXFLOAT))
61 termsTextViewHeight.constant = termsTextView.sizeThatFits(targetSize).height 61 termsTextViewHeight.constant = termsTextView.sizeThatFits(targetSize).height
62 62
63 - termsButton.setImage(UIImage(named: "ic_up_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal) 63 + termsButton.setImage(UIImage(named: "ic_up_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
64 } else { 64 } else {
65 termsTextView.isHidden = true 65 termsTextView.isHidden = true
66 termsTextViewHeight.constant = CGFloat(0) 66 termsTextViewHeight.constant = CGFloat(0)
67 67
68 - termsButton.setImage(UIImage(named: "ic_down_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal) 68 + termsButton.setImage(UIImage(named: "ic_down_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
69 } 69 }
70 } 70 }
71 71
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 7
8 import Foundation 8 import Foundation
9 import UIKit 9 import UIKit
10 -import WarplySDKFrameworkIOS 10 +//import WarplySDKFrameworkIOS
11 11
12 @objc class CouponsTableViewCell: UITableViewCell { 12 @objc class CouponsTableViewCell: UITableViewCell {
13 @IBOutlet weak var couponBgImage: UIImageView! 13 @IBOutlet weak var couponBgImage: UIImageView!
...@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS ...@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
23 super.awakeFromNib() 23 super.awakeFromNib()
24 // Initialization code 24 // Initialization code
25 25
26 - couponBgImage.image = UIImage(named: "coupon_bg", bundle: Bundle(for: MyEmptyClass.self)) 26 + couponBgImage.image = UIImage(named: "coupon_bg", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
27 27
28 borderView.addDashedBorderVertical(color: UIColor(red: 0.44, green: 0.44, blue: 0.44, alpha: 1.00), width: 1.0, height: 110.0) 28 borderView.addDashedBorderVertical(color: UIColor(red: 0.44, green: 0.44, blue: 0.44, alpha: 1.00), width: 1.0, height: 110.0)
29 } 29 }
......
...@@ -7,7 +7,7 @@ ...@@ -7,7 +7,7 @@
7 7
8 import Foundation 8 import Foundation
9 import UIKit 9 import UIKit
10 -import WarplySDKFrameworkIOS 10 +//import WarplySDKFrameworkIOS
11 11
12 @objc public class CouponsViewController: UIViewController { 12 @objc public class CouponsViewController: UIViewController {
13 @IBOutlet weak var backgroundImage: UIImageView! 13 @IBOutlet weak var backgroundImage: UIImageView!
...@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS ...@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
23 setBackButton() 23 setBackButton()
24 setNavigationTitle("Ενεργά κουπόνια") 24 setNavigationTitle("Ενεργά κουπόνια")
25 25
26 - backgroundImage.image = UIImage(named: "coupons_scrollview_dark", bundle: Bundle(for: MyEmptyClass.self)) 26 + backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
27 27
28 tableView.delegate = self 28 tableView.delegate = self
29 tableView.dataSource = self 29 tableView.dataSource = self
......
...@@ -22,7 +22,7 @@ import UIKit ...@@ -22,7 +22,7 @@ import UIKit
22 22
23 @IBAction func navigateToCampaign(_ sender: Any) { 23 @IBAction func navigateToCampaign(_ sender: Any) {
24 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self)) 24 let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
25 - let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as UIViewController 25 + let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! CampaignViewController
26 vc.campaignUrl = "https://www.google.com" 26 vc.campaignUrl = "https://www.google.com"
27 self.navigationController?.pushViewController(vc, animated: true) 27 self.navigationController?.pushViewController(vc, animated: true)
28 } 28 }
......