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
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
18 additions
and
8 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
))
// 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
couponBarcodeViewController
=
instanceOfMyApi
.
openCouponBarcode
(
parentView
,
coupon
:
tempItem
)
!
couponBarcodeViewController
.
view
.
tag
=
7
// addChild(couponsViewController)
couponBarcodeViewController
.
view
.
frame
=
parentView
.
frame
parentView
.
addSubview
(
couponBarcodeViewController
.
view
)
couponBarcodeViewController
.
didMove
(
toParent
:
UIHostingController
(
rootView
:
self
))
}
label
:
{
HStack
(
alignment
:
.
center
)
{
...
...
Please
register
or
login
to post a comment