Manos Chorianopoulos

finish GiftsView

Showing 23 changed files with 99 additions and 10 deletions
{
"images" : [
{
"filename" : "coupon_bg.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "coupon_bg-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "coupon_bg-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "filters_btn.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "filters_btn-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "filters_btn-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "location_icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "location_icon-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "location_icon-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
{
"images" : [
{
"filename" : "search_icon.png",
"idiom" : "universal",
"scale" : "1x"
},
{
"filename" : "search_icon-1.png",
"idiom" : "universal",
"scale" : "2x"
},
{
"filename" : "search_icon-2.png",
"idiom" : "universal",
"scale" : "3x"
}
],
"info" : {
"author" : "xcode",
"version" : 1
}
}
......@@ -7,7 +7,7 @@
<key>Pods-WarplySDKFrameworkIOS.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>0</integer>
<integer>1</integer>
</dict>
</dict>
</dict>
......
......@@ -7,7 +7,7 @@
<key>WarplySDKFrameworkIOS.xcscheme_^#shared#^_</key>
<dict>
<key>orderHint</key>
<integer>1</integer>
<integer>0</integer>
</dict>
</dict>
</dict>
......
......@@ -11,8 +11,8 @@ import SwiftUI
@available(iOS 13.0.0, *)
@objc public class GiftsViewInterface : NSObject {
@objc static public func giftsViewController() -> UIViewController {
return UIHostingController(rootView: GiftsView())
@objc(giftsViewController:) static public func giftsViewController(parentView: UIView?) -> UIViewController {
return UIHostingController(rootView: GiftsView(parentView: parentView!))
}
}
......
......@@ -16,7 +16,7 @@
- (void) setToStage;
- (void) setLang:(NSString*) lang;
- (UIViewController *) openCoupons:(UIView*) parentView;
- (UIViewController *) openGifts;
- (UIViewController *) openGifts:(UIView*) parentView;
- (void) applicationDidEnterBackground:(UIApplication *)application;
- (void) applicationWillEnterForeground:(UIApplication *)application;
- (void) applicationDidBecomeActive:(UIApplication *)application;
......
......@@ -52,12 +52,9 @@ NSString *LANG;
return couponsViewController;
}
- (UIViewController *) openGifts{
- (UIViewController *) openGifts:(UIView*) parentView{
UIViewController *giftsViewController = [GiftsViewInterface giftsViewController];
// controller = [[UINavigationController alloc]initWithRootViewController:profileViewController];
// [window makeKeyAndVisible];
UIViewController *giftsViewController = [GiftsViewInterface giftsViewController:parentView];
return giftsViewController;
}
......