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-06-28 17:59:30 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c6e952c7b97b2f1f07127e03b68c690cc59f85f6
c6e952c7
1 parent
ba3cabd4
fix navigation
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
6 additions
and
6 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ActiveGiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ActiveGiftsViewController.swift
View file @
c6e952c
...
...
@@ -20,7 +20,7 @@ import UIKit
@IBAction
func
navigateToCoupon
(
_
sender
:
Any
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponViewController"
)
as
UI
ViewController
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponViewController"
)
as
!
SwiftWarplyFramework
.
Coupon
ViewController
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponViewController.swift
View file @
c6e952c
...
...
@@ -103,7 +103,7 @@ import UIKit
redeemCouponSetRequest
(
uuid
:
couponset
?
.
uuid
??
""
)
// let storyboard = UIStoryboard(name: "Main", bundle: Bundle(for: MyEmptyClass.self))
// let vc = storyboard.instantiateViewController(withIdentifier: "MakeItAPresentViewController") as
UI
ViewController
// let vc = storyboard.instantiateViewController(withIdentifier: "MakeItAPresentViewController") as
! SwiftWarplyFramework.MakeItAPresent
ViewController
// self.navigationController?.pushViewController(vc, animated: true)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/CouponsViewController.swift
View file @
c6e952c
...
...
@@ -121,7 +121,7 @@ extension CouponsViewController: UITableViewDelegate, UITableViewDataSource{
SwiftEventBus
.
post
(
"ccms_enabled"
,
sender
:
ccmsEnabled
)
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as!
CouponBarcodeViewController
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as!
SwiftWarplyFramework
.
CouponBarcodeViewController
vc
.
coupon
=
coupons
[
indexPath
.
row
]
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
c6e952c
...
...
@@ -85,7 +85,7 @@ extension GiftsViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as!
CampaignViewController
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as!
SwiftWarplyFramework
.
CampaignViewController
let
url
=
swiftApi
()
.
constructCampaignUrl
(
campaigns
[
indexPath
.
row
])
vc
.
campaignUrl
=
url
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
View file @
c6e952c
...
...
@@ -86,7 +86,7 @@ extension MFYViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as!
CampaignViewController
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as!
SwiftWarplyFramework
.
CampaignViewController
let
url
=
swiftApi
()
.
constructCampaignUrl
(
campaigns
[
indexPath
.
row
])
vc
.
campaignUrl
=
url
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
c6e952c
...
...
@@ -207,7 +207,7 @@ extension WalletViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
didSelectRowAt
indexPath
:
IndexPath
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as!
CouponBarcodeViewController
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CouponBarcodeViewController"
)
as!
SwiftWarplyFramework
.
CouponBarcodeViewController
vc
.
coupon
=
coupons
[
indexPath
.
row
]
self
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
...
...
Please
register
or
login
to post a comment