Toggle navigation
Toggle navigation
This project
Loading...
Sign in
open-source
/
warply_sdk_framework
Go to a project
Toggle navigation
Toggle navigation pinning
Projects
Groups
Snippets
Help
Project
Activity
Repository
Graphs
Network
Create a new issue
Commits
Issue Boards
Authored by
Manos Chorianopoulos
2022-04-27 10:57:17 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0126f8aa0c3800833e8e00e2b45035f8ada18674
0126f8aa
1 parent
3e44c763
GiftsView changes
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
16 additions
and
6 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/GiftsView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
0126f8a
No preview for this file type
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/GiftsView.swift
View file @
0126f8a
...
...
@@ -499,14 +499,24 @@ extension GiftsView {
var
body
:
some
View
{
Button
{
// GiftItem Action
// let tempItem = item.asDictionary
// let instanceOfMyApi = MyApi()
// let couponViewController = instanceOfMyApi.openCoupon(parentView, coupon: tempItem)!
// couponViewController.view.tag = 2
//// addChild(couponsViewController)
// couponViewController.view.frame = parentView.frame
// parentView.addSubview(couponViewController.view)
// couponViewController.didMove(toParent: UIHostingController(rootView: self))
// GiftItem Action
let
tempItem
=
item
.
asDictionary
let
instanceOfMyApi
=
MyApi
()
let
couponViewController
=
instanceOfMyApi
.
openCoupon
(
parentView
,
coupon
:
tempItem
)
!
couponViewController
.
view
.
tag
=
2
// addChild(couponsViewController)
coupon
ViewController
.
view
.
frame
=
parentView
.
frame
parentView
.
addSubview
(
coupon
ViewController
.
view
)
coupon
ViewController
.
didMove
(
toParent
:
UIHostingController
(
rootView
:
self
))
let
couponBarcodeViewController
=
instanceOfMyApi
.
openCouponBarcode
(
parentView
,
coupon
:
tempItem
)
!
couponBarcodeViewController
.
view
.
tag
=
7
// addChild(couponsViewController)
couponBarcode
ViewController
.
view
.
frame
=
parentView
.
frame
parentView
.
addSubview
(
couponBarcode
ViewController
.
view
)
couponBarcode
ViewController
.
didMove
(
toParent
:
UIHostingController
(
rootView
:
self
))
}
label
:
{
HStack
(
alignment
:
.
center
)
{
...
...
Please
register
or
login
to post a comment