Manos Chorianopoulos

fix image bundles

......@@ -6,7 +6,7 @@
//
import UIKit
import WarplySDKFrameworkIOS
//import WarplySDKFrameworkIOS
import RSBarcodes_Swift
import AVFoundation
......@@ -42,7 +42,7 @@ import AVFoundation
setBackButton()
setNavigationTitle("Εκπτωτικό κουπόνι")
backgroundImage.image = UIImage(named: "coupons_scrollview_white", bundle: Bundle(for: MyEmptyClass.self))
backgroundImage.image = UIImage(named: "coupons_scrollview_white", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
scrollView.clipsToBounds = true
scrollView.layer.cornerRadius = 30
......@@ -99,12 +99,12 @@ import AVFoundation
let targetSize = CGSize(width: termsTextView.frame.width, height: CGFloat(MAXFLOAT))
termsTextViewHeight.constant = termsTextView.sizeThatFits(targetSize).height
termsButton.setImage(UIImage(named: "ic_up_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
termsButton.setImage(UIImage(named: "ic_up_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
} else {
termsTextView.isHidden = true
termsTextViewHeight.constant = CGFloat(0)
termsButton.setImage(UIImage(named: "ic_down_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
termsButton.setImage(UIImage(named: "ic_down_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
}
}
......
......@@ -29,7 +29,7 @@ import UIKit
setBackButton()
setNavigationTitle("Εκπτωτικό κουπόνι")
backgroundImage.image = UIImage(named: "coupons_scrollview_white", bundle: Bundle(for: MyEmptyClass.self))
backgroundImage.image = UIImage(named: "coupons_scrollview_white", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
scrollView.clipsToBounds = true
scrollView.layer.cornerRadius = 30
......@@ -60,12 +60,12 @@ import UIKit
let targetSize = CGSize(width: termsTextView.frame.width, height: CGFloat(MAXFLOAT))
termsTextViewHeight.constant = termsTextView.sizeThatFits(targetSize).height
termsButton.setImage(UIImage(named: "ic_up_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
termsButton.setImage(UIImage(named: "ic_up_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
} else {
termsTextView.isHidden = true
termsTextViewHeight.constant = CGFloat(0)
termsButton.setImage(UIImage(named: "ic_down_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
termsButton.setImage(UIImage(named: "ic_down_dark.png", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil), for: .normal)
}
}
......
......@@ -7,7 +7,7 @@
import Foundation
import UIKit
import WarplySDKFrameworkIOS
//import WarplySDKFrameworkIOS
@objc class CouponsTableViewCell: UITableViewCell {
@IBOutlet weak var couponBgImage: UIImageView!
......@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
super.awakeFromNib()
// Initialization code
couponBgImage.image = UIImage(named: "coupon_bg", bundle: Bundle(for: MyEmptyClass.self))
couponBgImage.image = UIImage(named: "coupon_bg", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
borderView.addDashedBorderVertical(color: UIColor(red: 0.44, green: 0.44, blue: 0.44, alpha: 1.00), width: 1.0, height: 110.0)
}
......
......@@ -7,7 +7,7 @@
import Foundation
import UIKit
import WarplySDKFrameworkIOS
//import WarplySDKFrameworkIOS
@objc public class CouponsViewController: UIViewController {
@IBOutlet weak var backgroundImage: UIImageView!
......@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
setBackButton()
setNavigationTitle("Ενεργά κουπόνια")
backgroundImage.image = UIImage(named: "coupons_scrollview_dark", bundle: Bundle(for: MyEmptyClass.self))
backgroundImage.image = UIImage(named: "coupons_scrollview_dark", in: Bundle(for: MyEmptyClass.self), compatibleWith: nil)
tableView.delegate = self
tableView.dataSource = self
......
......@@ -22,7 +22,7 @@ import UIKit
@IBAction func navigateToCampaign(_ sender: Any) {
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as UIViewController
let vc = storyboard.instantiateViewController(withIdentifier: "CampaignViewController") as! CampaignViewController
vc.campaignUrl = "https://www.google.com"
self.navigationController?.pushViewController(vc, animated: true)
}
......