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-10 14:09:25 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
0eadb4fa83ca33e11451f7a97084076fee5f03b8
0eadb4fa
1 parent
f54b49bb
add openQuestionnaire, setCampaignList
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
SwiftWarplyFramework/SwiftWarplyFramework/swiftApi.swift
View file @
0eadb4f
...
...
@@ -1239,4 +1239,21 @@ public class swiftApi {
}
}
public
func
openQuestionnaire
(
controller
:
UIViewController
)
->
Void
{
for
item
in
GlobalVariables
.
campaigns
{
if
(
item
.
offer_category
==
"questionnaire"
)
{
let
storyboard
=
UIStoryboard
(
name
:
"Main"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
))
let
vc
=
storyboard
.
instantiateViewController
(
withIdentifier
:
"CampaignViewController"
)
as!
CampaignViewController
vc
.
campaignUrl
=
item
.
index_url
??
""
controller
.
navigationController
?
.
pushViewController
(
vc
,
animated
:
true
)
break
;
}
}
}
public
func
setCampaignList
(
_
campaigns
:
Array
<
CampaignItemModel
>
)
->
Void
{
GlobalVariables
.
campaigns
=
campaigns
}
}
...
...
Please
register
or
login
to post a comment