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-23 17:16:41 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
2e97ad76ad54dc759a762979ada7723b78988355
2e97ad76
1 parent
2005df63
MyRewardsBannerOffersScrollTableViewCell fixes
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
9 additions
and
15 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.xib
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.xib
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
2e97ad7
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsBannerOffersScrollTableViewCell/MyRewardsBannerOffersScrollTableViewCell.xib
View file @
2e97ad7
...
...
@@ -4,7 +4,6 @@
<dependencies>
<plugIn
identifier=
"com.apple.InterfaceBuilder.IBCocoaTouchPlugin"
version=
"23084"
/>
<capability
name=
"Safe area layout guides"
minToolsVersion=
"9.0"
/>
<capability
name=
"System colors in document resources"
minToolsVersion=
"11.0"
/>
<capability
name=
"documents saved in the Xcode 8 format"
minToolsVersion=
"8.0"
/>
</dependencies>
<objects>
...
...
@@ -13,7 +12,7 @@
<tableViewCell
contentMode=
"scaleToFill"
selectionStyle=
"none"
indentationWidth=
"10"
reuseIdentifier=
"MyRewardsBannerOffersScrollTableViewCell"
rowHeight=
"119"
id=
"KGk-i7-Jjw"
customClass=
"MyRewardsBannerOffersScrollTableViewCell"
customModule=
"SwiftWarplyFramework"
customModuleProvider=
"target"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"388"
height=
"119"
/>
<autoresizingMask
key=
"autoresizingMask"
flexibleMaxX=
"YES"
flexibleMaxY=
"YES"
/>
<tableViewCellContentView
key=
"contentView"
opaque=
"NO"
clipsSubviews=
"YES"
multipleTouchEnabled=
"YES"
contentMode=
"center"
ambiguous=
"YES"
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=
"388"
height=
"119"
/>
<autoresizingMask
key=
"autoresizingMask"
/>
<subviews>
...
...
@@ -24,7 +23,7 @@
<rect
key=
"frame"
x=
"24"
y=
"36"
width=
"340"
height=
"43"
/>
<subviews>
<view
contentMode=
"scaleToFill"
ambiguous=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"h09-MS-XKy"
>
<rect
key=
"frame"
x=
"
128.33333333333334
"
y=
"8.6666666666666643"
width=
"58"
height=
"26"
/>
<rect
key=
"frame"
x=
"
0.0
"
y=
"8.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"
/>
...
...
@@ -43,10 +42,10 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
ambiguous=
"YES"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"H5g-xq-68p"
>
<rect
key=
"frame"
x=
"
194.33333333333337"
y=
"8.6666666666666643"
width=
"61.666666666666629
"
height=
"26"
/>
<rect
key=
"frame"
x=
"
66"
y=
"8.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=
"
5.999999999999971
6"
y=
"3"
width=
"49.666666666666664"
height=
"20"
/>
<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"
/>
...
...
@@ -73,7 +72,7 @@
</constraints>
</imageView>
</subviews>
<color
key=
"backgroundColor"
systemColor=
"systemBackgroundColor
"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace
"
/>
<constraints>
<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"
/>
...
...
@@ -85,6 +84,7 @@
<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"
/>
...
...
@@ -122,9 +122,4 @@
<point
key=
"canvasLocation"
x=
"53.435114503816791"
y=
"14.43661971830986"
/>
</tableViewCell>
</objects>
<resources>
<systemColor
name=
"systemBackgroundColor"
>
<color
white=
"1"
alpha=
"1"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
</systemColor>
</resources>
</document>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.swift
View file @
2e97ad7
...
...
@@ -303,8 +303,8 @@ struct OfferModel {
super
.
viewDidLoad
()
// Register XIBs for table view cells
tableView
.
register
(
UINib
(
nibName
:
"MyRewardsBannerOffersScrollTableViewCell"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)),
forCellReuseIdentifier
:
"
Banner
Cell"
)
tableView
.
register
(
UINib
(
nibName
:
"MyRewardsOffersScrollTableViewCell"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)),
forCellReuseIdentifier
:
"
Offers
Cell"
)
tableView
.
register
(
UINib
(
nibName
:
"MyRewardsBannerOffersScrollTableViewCell"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)),
forCellReuseIdentifier
:
"
MyRewardsBannerOffersScrollTableView
Cell"
)
tableView
.
register
(
UINib
(
nibName
:
"MyRewardsOffersScrollTableViewCell"
,
bundle
:
Bundle
(
for
:
MyEmptyClass
.
self
)),
forCellReuseIdentifier
:
"
MyRewardsOffersScrollTableView
Cell"
)
// Set up table view
tableView
.
delegate
=
self
...
...
@@ -430,7 +430,6 @@ extension MyRewardsViewController: UITableViewDelegate, UITableViewDataSource{
public
func
tableView
(
_
tableView
:
UITableView
,
cellForRowAt
indexPath
:
IndexPath
)
->
UITableViewCell
{
if
(
indexPath
.
section
==
0
)
{
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"MyRewardsBannerOffersScrollTableViewCell"
,
for
:
indexPath
)
as!
MyRewardsBannerOffersScrollTableViewCell
let
smCount
=
1
cell
.
configureCell
(
data
:
self
.
bannerOffersSection
)
// cell.parent = self
return
cell
...
...
SwiftWarplyFramework/SwiftWarplyFramework/screens/MyRewardsViewController/MyRewardsViewController.xib
View file @
2e97ad7
...
...
@@ -22,7 +22,7 @@
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"scR-yg-okd"
userLabel=
"Main View"
>
<rect
key=
"frame"
x=
"0.0"
y=
"59"
width=
"393"
height=
"793"
/>
<subviews>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"
grouped"
separatorStyle=
"none"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"1"
estimatedSectionHeaderHeight=
"-1"
sectionFooterHeight=
"1
"
estimatedSectionFooterHeight=
"-1"
contentViewInsetsToSafeArea=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2it-5M-CR6"
>
<tableView
clipsSubviews=
"YES"
contentMode=
"scaleToFill"
alwaysBounceVertical=
"YES"
dataMode=
"prototypes"
style=
"
plain"
separatorStyle=
"none"
rowHeight=
"-1"
estimatedRowHeight=
"-1"
sectionHeaderHeight=
"28"
estimatedSectionHeaderHeight=
"-1"
sectionFooterHeight=
"28
"
estimatedSectionFooterHeight=
"-1"
contentViewInsetsToSafeArea=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"2it-5M-CR6"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"393"
height=
"793"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<color
key=
"separatorColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
...
...
Please
register
or
login
to post a comment