Vasilis

addition of open methods in swiftapi

......@@ -6,6 +6,7 @@
//
import Foundation
import SwiftUI
public class swiftApi {
......@@ -330,4 +331,12 @@ public class swiftApi {
public func getCampaigns() -> Array<CampaignItemModel> {
return CampaignDataModel().getData
}
public func openCoupon(parent: UIView, coupon: CouponSetItemModel) -> UIViewController {
return UIHostingController(rootView: CouponView(parentView: parent, coupon: coupon))
}
public func openCouponBarcode(parent: UIView, coupon: CouponSetItemModel) -> UIViewController {
return UIHostingController(rootView: CouponBarcodeView(parentView: parent, coupon: coupon))
}
}
......