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-29 16:43:48 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
6dfe42d930cac3013359a7266629a334c29f951d
6dfe42d9
1 parent
7259ed6f
fix CouponsView init
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
10 additions
and
9 deletions
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
WarplySDKFrameworkIOS/WarplySDKFrameworkIOS/CouponsView.swift
View file @
6dfe42d
...
...
@@ -254,21 +254,22 @@ extension CouponsView {
@available(iOS 13.0.0, *)
struct
CouponsView
:
View
{
//
var data:Array<swiftApi.CouponItemModel> = []
var
data
:
Array
<
swiftApi
.
CouponItemModel
>
=
[]
var
data
:
Array
<
swiftApi
.
CouponItemModel
>
=
DataModel
()
.
getData2
//
var data:Array<swiftApi.CouponItemModel> = DataModel().getData2
var
parentView
:
UIView
var
uiscreen
=
UIScreen
.
main
.
bounds
// init() { //initializer method
//
// let instanceOfMySwiftApi = swiftApi()
// let couponsData = instanceOfMySwiftApi.getCoupons()
//
// self.data = couponsData
// }
init
(
parentView
:
UIView
)
{
//initializer method
let
instanceOfMySwiftApi
=
swiftApi
()
let
couponsData
=
instanceOfMySwiftApi
.
getCoupons
()
self
.
data
=
couponsData
self
.
parentView
=
parentView
}
func
goBack
(){
for
subview
in
parentView
.
subviews
{
...
...
Please
register
or
login
to post a comment