Manos Chorianopoulos

bundle fixes

......@@ -7,7 +7,7 @@
<key>Pods-SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>SwiftWarplyFramework.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -42,7 +42,7 @@ import AVFoundation
setBackButton()
setNavigationTitle("Εκπτωτικό κουπόνι")
backgroundImage.image = UIImage(named: "coupons_scrollview_white")
backgroundImage.image = UIImage(named: "coupons_scrollview_white", bundle: Bundle(for: MyEmptyClass.self))
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"), for: .normal)
termsButton.setImage(UIImage(named: "ic_up_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
} else {
termsTextView.isHidden = true
termsTextViewHeight.constant = CGFloat(0)
termsButton.setImage(UIImage(named: "ic_down_dark.png"), for: .normal)
termsButton.setImage(UIImage(named: "ic_down_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
}
}
......
......@@ -29,7 +29,7 @@ import UIKit
setBackButton()
setNavigationTitle("Εκπτωτικό κουπόνι")
backgroundImage.image = UIImage(named: "coupons_scrollview_white")
backgroundImage.image = UIImage(named: "coupons_scrollview_white", bundle: Bundle(for: MyEmptyClass.self))
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"), for: .normal)
termsButton.setImage(UIImage(named: "ic_up_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
} else {
termsTextView.isHidden = true
termsTextViewHeight.constant = CGFloat(0)
termsButton.setImage(UIImage(named: "ic_down_dark.png"), for: .normal)
termsButton.setImage(UIImage(named: "ic_down_dark.png", bundle: Bundle(for: MyEmptyClass.self)), for: .normal)
}
}
......
......@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
super.awakeFromNib()
// Initialization code
couponBgImage.image = UIImage(named: "coupon_bg")
couponBgImage.image = UIImage(named: "coupon_bg", bundle: Bundle(for: MyEmptyClass.self))
borderView.addDashedBorderVertical(color: UIColor(red: 0.44, green: 0.44, blue: 0.44, alpha: 1.00), width: 1.0, height: 110.0)
}
......
......@@ -23,7 +23,7 @@ import WarplySDKFrameworkIOS
setBackButton()
setNavigationTitle("Ενεργά κουπόνια")
backgroundImage.image = UIImage(named: "coupons_scrollview_dark")
backgroundImage.image = UIImage(named: "coupons_scrollview_dark", bundle: Bundle(for: MyEmptyClass.self))
tableView.delegate = self
tableView.dataSource = self
......@@ -83,10 +83,10 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
func tableView(_ tableView: UITableView, didSelectRowAt indexPath: IndexPath) {
// TODO: navigate to CouponBarcode
// let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
// let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as UIViewController
// self.navigationController?.pushViewController(vc, animated: true)
let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
let vc = storyboard.instantiateViewController(withIdentifier: "CouponBarcodeViewController") as UIViewController
vc.coupon = coupons[indexPath.row]
self.navigationController?.pushViewController(vc, animated: true)
}
}
......
......@@ -23,6 +23,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
vc.campaignUrl = "https://www.google.com"
self.navigationController?.pushViewController(vc, animated: true)
}
......