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
2025-05-29 17:29:40 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
a6104e2244653a7b3a9d6a00a2420e8dbd9e5168
a6104e22
1 parent
d66ca896
profile fixes
Hide whitespace changes
Inline
Side-by-side
Showing
7 changed files
with
31 additions
and
13 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/cells/ProfileCouponFiltersTableViewCell/ProfileCouponFiltersTableViewCell.xib
SwiftWarplyFramework/SwiftWarplyFramework/cells/ProfileCouponTableViewCell/ProfileCouponTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/cells/ProfileFilterCollectionViewCell/ProfileFilterCollectionViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/ProfileViewController/ProfileViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
a6104e2
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.swift
View file @
a6104e2
...
...
@@ -101,6 +101,7 @@ protocol MyRewardsBannerOffersScrollTableViewCellDelegate: AnyObject {
}
@objc
private
func
profileButtonTapped
()
{
// TODO: UNCOMMENT
delegate
?
.
didTapProfileButton
()
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/cells/ProfileCouponFiltersTableViewCell/ProfileCouponFiltersTableViewCell.xib
View file @
a6104e2
...
...
@@ -20,16 +20,16 @@
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"320"
height=
"161"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"mga-ND-qoh"
>
<rect
key=
"frame"
x=
"24"
y=
"26"
width=
"272"
height=
"
49
"
/>
<rect
key=
"frame"
x=
"24"
y=
"26"
width=
"272"
height=
"
14
"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
dataMode=
"none"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"Ddn-dN-xH1"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
118"
width=
"320"
height=
"43
"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
83"
width=
"320"
height=
"48
"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"4
3
"
id=
"5nG-1p-kic"
/>
<constraint
firstAttribute=
"height"
constant=
"4
8
"
id=
"5nG-1p-kic"
/>
</constraints>
<collectionViewFlowLayout
key=
"collectionViewLayout"
scrollDirection=
"horizontal"
automaticEstimatedItemSize=
"YES"
minimumLineSpacing=
"5"
minimumInteritemSpacing=
"5"
id=
"tAC-pV-kZ6"
>
<size
key=
"itemSize"
width=
"128"
height=
"120"
/>
...
...
@@ -50,7 +50,7 @@
<constraint
firstItem=
"Ddn-dN-xH1"
firstAttribute=
"leading"
secondItem=
"1kR-zd-duR"
secondAttribute=
"leading"
id=
"3IU-v8-7cI"
/>
<constraint
firstItem=
"mga-ND-qoh"
firstAttribute=
"top"
secondItem=
"1kR-zd-duR"
secondAttribute=
"top"
constant=
"26"
id=
"J0I-v0-uwq"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"mga-ND-qoh"
secondAttribute=
"trailing"
constant=
"24"
id=
"Ss1-zq-znd"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Ddn-dN-xH1"
secondAttribute=
"bottom"
id=
"VdN-By-srg"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"Ddn-dN-xH1"
secondAttribute=
"bottom"
constant=
"30"
id=
"VdN-By-srg"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"Ddn-dN-xH1"
secondAttribute=
"trailing"
id=
"W06-Yi-lzm"
/>
<constraint
firstItem=
"mga-ND-qoh"
firstAttribute=
"leading"
secondItem=
"1kR-zd-duR"
secondAttribute=
"leading"
constant=
"24"
id=
"sEy-GV-Pjr"
/>
</constraints>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/cells/ProfileCouponTableViewCell/ProfileCouponTableViewCell.swift
View file @
a6104e2
...
...
@@ -27,7 +27,7 @@ import UIKit
parentView
.
layer
.
cornerRadius
=
8.0
parentView
.
clipsToBounds
=
true
discountView
.
layer
.
cornerRadius
=
34
.0
discountView
.
layer
.
cornerRadius
=
42
.0
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/cells/ProfileFilterCollectionViewCell/ProfileFilterCollectionViewCell.swift
View file @
a6104e2
...
...
@@ -20,6 +20,7 @@ import UIKit
if
(
isSelected
)
{
parentView
.
backgroundColor
=
UIColor
(
rgb
:
0x000F1E
)
parentView
.
layer
.
cornerRadius
=
4.0
parentView
.
layer
.
borderWidth
=
0
titleLabel
.
font
=
UIFont
(
name
:
"PingLCG-Bold"
,
size
:
16
)
titleLabel
.
textColor
=
UIColor
(
rgb
:
0xFFFFFF
)
...
...
@@ -31,8 +32,9 @@ import UIKit
parentView
.
layer
.
cornerRadius
=
4.0
titleLabel
.
font
=
UIFont
(
name
:
"PingLCG-Bold"
,
size
:
16
)
titleLabel
.
textColor
=
UIColor
(
rgb
:
0x
FFFFFF
)
titleLabel
.
textColor
=
UIColor
(
rgb
:
0x
00111B
)
}
parentView
.
clipsToBounds
=
true
titleLabel
.
text
=
data
.
title
}
}
...
...
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
View file @
a6104e2
...
...
@@ -12,6 +12,7 @@ import UIKit
@IBOutlet
weak
var
tableView
:
UITableView
!
// MARK: - Dummy Data
// match - survey - tesla - energy saver
let
allOffers
:
[
OfferModel
]
=
[
// Banner Offers
OfferModel
(
...
...
@@ -20,7 +21,7 @@ import UIKit
description
:
"13 Απίθανα ΔΩΡΑ σε περιμένουν!"
,
discount
:
""
,
discountType
:
"contest"
,
bannerImage
:
"contest_banner_
1
"
,
bannerImage
:
"contest_banner_
2
"
,
merchantLogo
:
"contest_logo"
,
expirationDate
:
"30/06/2025"
,
color
:
0x8A2BE2
,
...
...
@@ -32,7 +33,7 @@ import UIKit
description
:
"13 Απίθανα ΔΩΡΑ σε περιμένουν!"
,
discount
:
""
,
discountType
:
"contest"
,
bannerImage
:
"contest_banner_
2
"
,
bannerImage
:
"contest_banner_
3
"
,
merchantLogo
:
"contest_logo"
,
expirationDate
:
"30/06/2025"
,
color
:
0x8A2BE2
,
...
...
@@ -56,7 +57,7 @@ import UIKit
description
:
"13 Απίθανα ΔΩΡΑ σε περιμένουν!"
,
discount
:
""
,
discountType
:
"contest"
,
bannerImage
:
"contest_banner_
3
"
,
bannerImage
:
"contest_banner_
1
"
,
merchantLogo
:
"contest_logo"
,
expirationDate
:
"30/06/2025"
,
color
:
0x8A2BE2
,
...
...
@@ -271,11 +272,12 @@ import UIKit
)
]
// match - survey - tesla - energy saver
let
contestUrls
:
[
String
]
=
[
"https://warply.s3.amazonaws.com/dei/campaigns/EnergySaverContest_dev/index.html"
,
"https://warply.s3.amazonaws.com/dei/campaigns/match_dev/index.html"
,
"https://warply.s3.amazonaws.com/dei/campaigns/questionnaire_dev/index.html"
"https://warply.s3.amazonaws.com/dei/campaigns/tesla_dev/index.html"
,
"https://warply.s3.amazonaws.com/dei/campaigns/
questionnaire_dev"
"https://warply.s3.amazonaws.com/dei/campaigns/
EnergySaverContest_dev/index.html"
,
]
var
bannerOffersSection
:
SectionModel
?
...
...
SwiftWarplyFramework/SwiftWarplyFramework/screens/ProfileViewController/ProfileViewController.swift
View file @
a6104e2
...
...
@@ -274,11 +274,24 @@ extension ProfileViewController: UITableViewDelegate, UITableViewDataSource {
}
public
func
tableView
(
_
tableView
:
UITableView
,
viewForHeaderInSection
section
:
Int
)
->
UIView
?
{
return
nil
// return nil
if
(
section
<=
3
)
{
return
nil
}
else
{
// Return clear view for spacing
let
headerView
=
UIView
()
headerView
.
backgroundColor
=
UIColor
.
white
return
headerView
}
}
public
func
tableView
(
_
tableView
:
UITableView
,
heightForHeaderInSection
section
:
Int
)
->
CGFloat
{
return
0.0
// return 0.0
if
(
section
<=
3
)
{
return
0.0
}
else
{
return
19.0
}
}
public
func
tableView
(
_
tableView
:
UITableView
,
heightForFooterInSection
section
:
Int
)
->
CGFloat
{
...
...
Please
register
or
login
to post a comment