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-07-23 18:14:43 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
84c3c710d4398372309f6424dc0e0dafc6320038
84c3c710
1 parent
472d8bf6
clean MyRewardsBannerOffersScrollTableViewCell
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
4 additions
and
130 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.xib
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
84c3c71
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.swift
View file @
84c3c71
...
...
@@ -9,17 +9,10 @@ import UIKit
protocol
MyRewardsBannerOffersScrollTableViewCellDelegate
:
AnyObject
{
func
didSelectBannerOffer
(
_
index
:
Int
)
// func didTapProfileButton()
}
@objc(MyRewardsBannerOffersScrollTableViewCell)
public
class
MyRewardsBannerOffersScrollTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
tagView1
:
UIView
!
@IBOutlet
weak
var
tagLabel1
:
UILabel
!
@IBOutlet
weak
var
tagView2
:
UIView
!
@IBOutlet
weak
var
tagLabel2
:
UILabel
!
@IBOutlet
weak
var
profileImage
:
UIImageView
!
@IBOutlet
weak
var
profileButton
:
UIButton
!
@IBOutlet
weak
var
collectionView
:
UICollectionView
!
@IBOutlet
weak
var
pageControl
:
UIPageControl
!
...
...
@@ -30,21 +23,6 @@ public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell {
super
.
awakeFromNib
()
// Initialization code
profileImage
.
image
=
UIImage
(
named
:
"profile_pic_default"
,
in
:
Bundle
.
frameworkResourceBundle
,
compatibleWith
:
nil
)
profileButton
.
addTarget
(
self
,
action
:
#selector(
profileButtonTapped
)
,
for
:
.
touchUpInside
)
tagView1
.
backgroundColor
=
UIColor
(
rgb
:
0x09914E
)
tagView1
.
layer
.
cornerRadius
=
4.0
tagLabel1
.
font
=
UIFont
(
name
:
"PingLCG-Regular"
,
size
:
17
)
tagLabel1
.
textColor
=
UIColor
(
rgb
:
0xFFFFFF
)
tagView2
.
backgroundColor
=
UIColor
(
rgb
:
0xFC9F25
)
tagView2
.
layer
.
cornerRadius
=
4.0
tagLabel2
.
font
=
UIFont
(
name
:
"PingLCG-Regular"
,
size
:
17
)
tagLabel2
.
textColor
=
UIColor
(
rgb
:
0xFFFFFF
)
// Register XIBs for collection view cells
collectionView
.
register
(
UINib
(
nibName
:
"MyRewardsBannerOfferCollectionViewCell"
,
bundle
:
Bundle
.
frameworkBundle
),
forCellWithReuseIdentifier
:
"MyRewardsBannerOfferCollectionViewCell"
)
...
...
@@ -101,10 +79,6 @@ public class MyRewardsBannerOffersScrollTableViewCell: UITableViewCell {
self
.
collectionView
.
reloadData
();
}
@objc
private
func
profileButtonTapped
()
{
// TODO: UNCOMMENT
// delegate?.didTapProfileButton()
}
}
extension
MyRewardsBannerOffersScrollTableViewCell
:
UICollectionViewDataSource
,
UICollectionViewDelegate
,
UICollectionViewDelegateFlowLayout
,
UIScrollViewDelegate
{
...
...
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.xib
View file @
84c3c71
...
...
@@ -12,101 +12,15 @@
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"MyRewardsBannerOffersScrollTableViewCell"
rowHeight=
"349"
id=
"KGk-i7-Jjw"
customClass=
"MyRewardsBannerOffersScrollTableViewCell"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"413"
height=
"349"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
ambiguous=
"YES"
insetsLayoutMarginsFromSafeArea=
"NO"
tableViewCell=
"KGk-i7-Jjw"
id=
"H2p-sc-9uM"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"413"
height=
"349"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"VzF-dQ-3Wa"
userLabel=
"Parent View"
>
<view
contentMode=
"scaleToFill"
ambiguous=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"VzF-dQ-3Wa"
userLabel=
"Parent View"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"413"
height=
"349"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JTs-J5-DO2"
userLabel=
"Top View"
>
<rect
key=
"frame"
x=
"24"
y=
"36"
width=
"365"
height=
"35"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"h09-MS-XKy"
>
<rect
key=
"frame"
x=
"0.0"
y=
"4.6666666666666643"
width=
"58"
height=
"26"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Green"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"4m7-JY-MDY"
>
<rect
key=
"frame"
x=
"6"
y=
"3"
width=
"46"
height=
"20"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<fontDescription
key=
"fontDescription"
name=
"HelveticaNeue"
family=
"Helvetica Neue"
pointSize=
"17"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.035294117647058823"
green=
"0.56862745098039214"
blue=
"0.30588235294117649"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"4m7-JY-MDY"
secondAttribute=
"bottom"
constant=
"3"
id=
"lbW-sK-uoN"
/>
<constraint
firstItem=
"4m7-JY-MDY"
firstAttribute=
"leading"
secondItem=
"h09-MS-XKy"
secondAttribute=
"leading"
constant=
"6"
id=
"oRk-5c-ko2"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"4m7-JY-MDY"
secondAttribute=
"trailing"
constant=
"6"
id=
"rOt-tf-dSS"
/>
<constraint
firstItem=
"4m7-JY-MDY"
firstAttribute=
"top"
secondItem=
"h09-MS-XKy"
secondAttribute=
"top"
constant=
"3"
id=
"tui-5x-ntO"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"H5g-xq-68p"
>
<rect
key=
"frame"
x=
"66"
y=
"4.6666666666666643"
width=
"61.666666666666657"
height=
"26"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Family"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"WN9-wM-hV8"
>
<rect
key=
"frame"
x=
"6"
y=
"3"
width=
"49.666666666666664"
height=
"20"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<fontDescription
key=
"fontDescription"
name=
"HelveticaNeue"
family=
"Helvetica Neue"
pointSize=
"17"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
</subviews>
<color
key=
"backgroundColor"
red=
"0.9882352941176471"
green=
"0.62352941176470589"
blue=
"0.14509803921568626"
alpha=
"1"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"bottom"
secondItem=
"WN9-wM-hV8"
secondAttribute=
"bottom"
constant=
"3"
id=
"12P-zS-ZRM"
/>
<constraint
firstItem=
"WN9-wM-hV8"
firstAttribute=
"leading"
secondItem=
"H5g-xq-68p"
secondAttribute=
"leading"
constant=
"6"
id=
"O5x-bk-yjz"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"WN9-wM-hV8"
secondAttribute=
"trailing"
constant=
"6"
id=
"lnW-mb-d4H"
/>
<constraint
firstItem=
"WN9-wM-hV8"
firstAttribute=
"top"
secondItem=
"H5g-xq-68p"
secondAttribute=
"top"
constant=
"3"
id=
"pwW-Ed-yv2"
/>
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"5cf-tr-Vjf"
>
<rect
key=
"frame"
x=
"322"
y=
"0.0"
width=
"43"
height=
"35"
/>
<subviews>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"fZO-NB-UyL"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"43"
height=
"43"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"width"
constant=
"43"
id=
"Obc-SE-A5u"
/>
<constraint
firstAttribute=
"height"
constant=
"43"
id=
"lZJ-VG-4fl"
/>
</constraints>
</imageView>
<button
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
buttonType=
"system"
lineBreakMode=
"middleTruncation"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"loI-CB-MX1"
userLabel=
"ProfileButton"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"43"
height=
"35"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<state
key=
"normal"
title=
"Button"
/>
<buttonConfiguration
key=
"configuration"
style=
"plain"
title=
"Button"
>
<color
key=
"baseForegroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</buttonConfiguration>
</button>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"loI-CB-MX1"
secondAttribute=
"trailing"
id=
"0PQ-cq-sCt"
/>
<constraint
firstItem=
"fZO-NB-UyL"
firstAttribute=
"leading"
secondItem=
"5cf-tr-Vjf"
secondAttribute=
"leading"
id=
"Bfw-5S-wqz"
/>
<constraint
firstItem=
"fZO-NB-UyL"
firstAttribute=
"top"
secondItem=
"5cf-tr-Vjf"
secondAttribute=
"top"
id=
"WCt-TJ-XQc"
/>
<constraint
firstItem=
"loI-CB-MX1"
firstAttribute=
"top"
secondItem=
"5cf-tr-Vjf"
secondAttribute=
"top"
id=
"XKb-DI-owX"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"fZO-NB-UyL"
secondAttribute=
"trailing"
id=
"Z0D-wE-fgE"
/>
<constraint
firstItem=
"loI-CB-MX1"
firstAttribute=
"leading"
secondItem=
"5cf-tr-Vjf"
secondAttribute=
"leading"
id=
"fM6-dS-psa"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"fZO-NB-UyL"
secondAttribute=
"bottom"
id=
"nuy-88-N5B"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"loI-CB-MX1"
secondAttribute=
"bottom"
id=
"rMQ-Ec-OZs"
/>
</constraints>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"5cf-tr-Vjf"
firstAttribute=
"top"
secondItem=
"JTs-J5-DO2"
secondAttribute=
"top"
id=
"GGh-C1-OfA"
/>
<constraint
firstItem=
"h09-MS-XKy"
firstAttribute=
"leading"
secondItem=
"JTs-J5-DO2"
secondAttribute=
"leading"
id=
"HNw-gn-pHJ"
/>
<constraint
firstItem=
"H5g-xq-68p"
firstAttribute=
"centerY"
secondItem=
"JTs-J5-DO2"
secondAttribute=
"centerY"
id=
"Lwo-5b-tgm"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"5cf-tr-Vjf"
secondAttribute=
"trailing"
id=
"PBw-4p-3qC"
/>
<constraint
firstItem=
"5cf-tr-Vjf"
firstAttribute=
"leading"
relation=
"greaterThanOrEqual"
secondItem=
"H5g-xq-68p"
secondAttribute=
"trailing"
constant=
"8"
id=
"Wot-lB-jmI"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"5cf-tr-Vjf"
secondAttribute=
"bottom"
id=
"geG-Wp-p9Z"
/>
<constraint
firstItem=
"h09-MS-XKy"
firstAttribute=
"centerY"
secondItem=
"JTs-J5-DO2"
secondAttribute=
"centerY"
id=
"j5f-Os-TZ0"
/>
<constraint
firstItem=
"H5g-xq-68p"
firstAttribute=
"leading"
secondItem=
"h09-MS-XKy"
secondAttribute=
"trailing"
constant=
"8"
id=
"wqx-Hc-3YH"
/>
</constraints>
</view>
<collectionView
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"scaleToFill"
showsHorizontalScrollIndicator=
"NO"
showsVerticalScrollIndicator=
"NO"
dataMode=
"none"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"I7z-Fz-SNP"
>
<rect
key=
"frame"
x=
"0.0"
y=
"
-25
"
width=
"413"
height=
"348"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"
20
"
width=
"413"
height=
"348"
/>
<color
key=
"backgroundColor"
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"348"
id=
"aEf-Xl-A2C"
/>
...
...
@@ -124,26 +38,18 @@
</connections>
</collectionView>
<pageControl
opaque=
"NO"
contentMode=
"scaleToFill"
contentHorizontalAlignment=
"center"
contentVerticalAlignment=
"center"
numberOfPages=
"3"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"lOm-CZ-dVG"
>
<rect
key=
"frame"
x=
"170"
y=
"3
23
"
width=
"73"
height=
"26"
/>
<rect
key=
"frame"
x=
"170"
y=
"3
68
"
width=
"73"
height=
"26"
/>
</pageControl>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstItem=
"lOm-CZ-dVG"
firstAttribute=
"top"
secondItem=
"I7z-Fz-SNP"
secondAttribute=
"bottom"
id=
"0xG-dd-XJl"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"lOm-CZ-dVG"
secondAttribute=
"bottom"
id=
"7gm-Kg-nCS"
/>
<constraint
firstItem=
"JTs-J5-DO2"
firstAttribute=
"top"
secondItem=
"VzF-dQ-3Wa"
secondAttribute=
"top"
constant=
"36"
id=
"Ac5-fx-J3w"
/>
<constraint
firstItem=
"JTs-J5-DO2"
firstAttribute=
"leading"
secondItem=
"VzF-dQ-3Wa"
secondAttribute=
"leading"
constant=
"24"
id=
"B98-id-FLf"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"JTs-J5-DO2"
secondAttribute=
"trailing"
constant=
"24"
id=
"Rdi-FK-2Ft"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"I7z-Fz-SNP"
secondAttribute=
"trailing"
id=
"avB-Gc-ttI"
/>
<constraint
firstItem=
"I7z-Fz-SNP"
firstAttribute=
"leading"
secondItem=
"VzF-dQ-3Wa"
secondAttribute=
"leading"
id=
"pTY-7d-s1S"
/>
<constraint
firstItem=
"I7z-Fz-SNP"
firstAttribute=
"top"
secondItem=
"VzF-dQ-3Wa"
secondAttribute=
"top"
constant=
"20"
id=
"vJF-jy-p83"
/>
<constraint
firstItem=
"lOm-CZ-dVG"
firstAttribute=
"centerX"
secondItem=
"VzF-dQ-3Wa"
secondAttribute=
"centerX"
id=
"xpw-tV-NcW"
/>
</constraints>
<variation
key=
"default"
>
<mask
key=
"subviews"
>
<exclude
reference=
"JTs-J5-DO2"
/>
</mask>
</variation>
</view>
</subviews>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
...
...
@@ -159,12 +65,6 @@
<connections>
<outlet
property=
"collectionView"
destination=
"I7z-Fz-SNP"
id=
"yrF-mR-aQu"
/>
<outlet
property=
"pageControl"
destination=
"lOm-CZ-dVG"
id=
"Skf-hV-rjH"
/>
<outlet
property=
"profileButton"
destination=
"loI-CB-MX1"
id=
"VTG-C3-3KA"
/>
<outlet
property=
"profileImage"
destination=
"fZO-NB-UyL"
id=
"l05-qG-DJv"
/>
<outlet
property=
"tagLabel1"
destination=
"4m7-JY-MDY"
id=
"Min-YW-AN2"
/>
<outlet
property=
"tagLabel2"
destination=
"WN9-wM-hV8"
id=
"yWk-1S-4Zk"
/>
<outlet
property=
"tagView1"
destination=
"h09-MS-XKy"
id=
"Hxa-cN-6i4"
/>
<outlet
property=
"tagView2"
destination=
"H5g-xq-68p"
id=
"Vcv-Si-g68"
/>
</connections>
<point
key=
"canvasLocation"
x=
"72.51908396946564"
y=
"95.422535211267615"
/>
</tableViewCell>
...
...
Please
register
or
login
to post a comment