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-26 17:48:36 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d49ea1d19543a0661b1b51740d5e7c153e8ae62e
d49ea1d1
1 parent
22bf8e48
new ui fixes
Hide whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
15 additions
and
15 deletions
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOfferCollectionViewCell/MyRewardsOfferCollectionViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOfferCollectionViewCell/MyRewardsOfferCollectionViewCell.xib
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOffersScrollTableViewCell/MyRewardsOffersScrollTableViewCell.swift
SwiftWarplyFramework/Pods/Pods.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
d49ea1d
...
...
@@ -7,7 +7,7 @@
<key>
Pods-SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
0
</integer>
<integer>
1
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/xcuserdata/manos.xcuserdatad/xcschemes/xcschememanagement.plist
View file @
d49ea1d
...
...
@@ -7,7 +7,7 @@
<key>
SwiftWarplyFramework.xcscheme_^#shared#^_
</key>
<dict>
<key>
orderHint
</key>
<integer>
1
</integer>
<integer>
0
</integer>
</dict>
</dict>
</dict>
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d49ea1d
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOfferCollectionViewCell/MyRewardsOfferCollectionViewCell.swift
View file @
d49ea1d
...
...
@@ -25,6 +25,7 @@ import UIKit
parentView
.
layer
.
borderWidth
=
1.0
parentView
.
layer
.
borderColor
=
UIColor
(
rgb
:
0xCCCCCC
)
.
cgColor
parentView
.
layer
.
cornerRadius
=
8.0
parentView
.
clipsToBounds
=
true
discountView
.
layer
.
cornerRadius
=
34.0
...
...
@@ -42,7 +43,7 @@ import UIKit
:
""
discountLabel
.
text
=
"
\(
data
.
discount
)\(
discountSymbol
)
"
discountLabel
.
font
=
UIFont
(
name
:
"PingLCG-Bold"
,
size
:
1
8
)
discountLabel
.
font
=
UIFont
(
name
:
"PingLCG-Bold"
,
size
:
1
7
)
discountLabel
.
textColor
=
UIColor
(
rgb
:
0xF2F2F2
)
discountView
.
backgroundColor
=
UIColor
(
rgb
:
data
.
color
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOfferCollectionViewCell/MyRewardsOfferCollectionViewCell.xib
View file @
d49ea1d
...
...
@@ -77,25 +77,25 @@
</constraints>
</view>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"VZh-nd-i9h"
userLabel=
"Bottom View"
>
<rect
key=
"frame"
x=
"
14"
y=
"64"
width=
"254
"
height=
"101"
/>
<rect
key=
"frame"
x=
"
0.0"
y=
"64"
width=
"268
"
height=
"101"
/>
<subviews>
<view
contentMode=
"scaleToFill"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"0lx-ek-fAp"
>
<rect
key=
"frame"
x=
"11"
y=
"8"
width=
"1
48
"
height=
"82"
/>
<rect
key=
"frame"
x=
"11"
y=
"8"
width=
"1
62
"
height=
"82"
/>
<subviews>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"JDi-AY-Oai"
>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"1
48
"
height=
"21"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"0.0"
width=
"1
62
"
height=
"21"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
numberOfLines=
"2"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"aNz-HU-dYm"
>
<rect
key=
"frame"
x=
"0.0"
y=
"23"
width=
"1
48
"
height=
"20.333333333333329"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"23"
width=
"1
62
"
height=
"20.333333333333329"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
</label>
<label
opaque=
"NO"
userInteractionEnabled=
"NO"
contentMode=
"left"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
text=
"Label"
textAlignment=
"natural"
lineBreakMode=
"tailTruncation"
baselineAdjustment=
"alignBaselines"
adjustsFontSizeToFit=
"NO"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"bIt-Gd-bbg"
>
<rect
key=
"frame"
x=
"0.0"
y=
"61"
width=
"1
48
"
height=
"21"
/>
<rect
key=
"frame"
x=
"0.0"
y=
"61"
width=
"1
62
"
height=
"21"
/>
<fontDescription
key=
"fontDescription"
type=
"system"
pointSize=
"17"
/>
<nil
key=
"textColor"
/>
<nil
key=
"highlightedColor"
/>
...
...
@@ -115,7 +115,7 @@
</constraints>
</view>
<imageView
clipsSubviews=
"YES"
userInteractionEnabled=
"NO"
contentMode=
"scaleAspectFit"
horizontalHuggingPriority=
"251"
verticalHuggingPriority=
"251"
translatesAutoresizingMaskIntoConstraints=
"NO"
id=
"3me-Qd-ALg"
>
<rect
key=
"frame"
x=
"1
77
"
y=
"13"
width=
"59"
height=
"59"
/>
<rect
key=
"frame"
x=
"1
91
"
y=
"13"
width=
"59"
height=
"59"
/>
<color
key=
"backgroundColor"
white=
"0.0"
alpha=
"0.0"
colorSpace=
"custom"
customColorSpace=
"genericGamma22GrayColorSpace"
/>
<constraints>
<constraint
firstAttribute=
"height"
constant=
"59"
id=
"Ij1-x5-I27"
/>
...
...
@@ -140,7 +140,7 @@
<constraint
firstAttribute=
"bottom"
secondItem=
"VZh-nd-i9h"
secondAttribute=
"bottom"
id=
"0Kf-vE-Wru"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"nG0-KL-IyC"
secondAttribute=
"trailing"
id=
"3PK-aE-vjr"
/>
<constraint
firstItem=
"VZh-nd-i9h"
firstAttribute=
"top"
secondItem=
"nG0-KL-IyC"
secondAttribute=
"bottom"
id=
"7xf-0u-A8S"
/>
<constraint
firstItem=
"VZh-nd-i9h"
firstAttribute=
"leading"
secondItem=
"5If-VV-K9F"
secondAttribute=
"leading"
constant=
"14"
id=
"P5a-2H-UoS"
/>
<constraint
firstItem=
"VZh-nd-i9h"
firstAttribute=
"leading"
secondItem=
"5If-VV-K9F"
secondAttribute=
"leading"
id=
"P5a-2H-UoS"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"VZh-nd-i9h"
secondAttribute=
"trailing"
id=
"dzM-oX-xd7"
/>
<constraint
firstItem=
"nG0-KL-IyC"
firstAttribute=
"top"
secondItem=
"5If-VV-K9F"
secondAttribute=
"top"
id=
"l7a-R3-Wjx"
/>
<constraint
firstItem=
"nG0-KL-IyC"
firstAttribute=
"leading"
secondItem=
"5If-VV-K9F"
secondAttribute=
"leading"
id=
"vz8-lp-dsA"
/>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOffersScrollTableViewCell/MyRewardsOffersScrollTableViewCell.swift
View file @
d49ea1d
...
...
@@ -48,13 +48,13 @@ import UIKit
// Configure collection view layout
if
let
layout
=
collectionView
.
collectionViewLayout
as?
UICollectionViewFlowLayout
{
layout
.
scrollDirection
=
.
horizontal
layout
.
minimumLineSpacing
=
0
layout
.
minimumLineSpacing
=
7
layout
.
minimumInteritemSpacing
=
0
layout
.
sectionInset
=
UIEdgeInsets
.
zero
layout
.
sectionInset
=
UIEdgeInsets
(
top
:
0
,
left
:
24
,
bottom
:
0
,
right
:
24
)
}
// Enable paging for smooth banner scrolling
collectionView
.
isPagingEnabled
=
true
//
collectionView.isPagingEnabled = true
collectionView
.
showsHorizontalScrollIndicator
=
false
// Set delegates
...
...
@@ -130,7 +130,6 @@ extension MyRewardsOffersScrollTableViewCell: UICollectionViewDataSource, UICol
// Cell Margin
public
func
collectionView
(
_
collectionView
:
UICollectionView
,
layout
collectionViewLayout
:
UICollectionViewLayout
,
insetForSectionAt
section
:
Int
)
->
UIEdgeInsets
{
return
UIEdgeInsets
.
zero
// UIEdgeInsets(top: 0, left: 7, bottom: 0, right: 0)
return
UIEdgeInsets
(
top
:
0
,
left
:
24
,
bottom
:
0
,
right
:
24
)
}
}
...
...
Please
register
or
login
to post a comment