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:02:15 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
7e5f773d381fd371a3d5d4c94dd37141ecba29a5
7e5f773d
1 parent
d204d3df
MyRewardsOffersScrollTableViewCellDelegate fixes
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
9 additions
and
2 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOffersScrollTableViewCell/MyRewardsOffersScrollTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/screens/ProfileViewController/ProfileViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
7e5f773
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/cells/MyRewardsOffersScrollTableViewCell/MyRewardsOffersScrollTableViewCell.swift
View file @
7e5f773
...
...
@@ -17,6 +17,7 @@ protocol MyRewardsOffersScrollTableViewCellDelegate: AnyObject {
@IBOutlet
weak
var
allButtonLabel
:
UILabel
!
@IBOutlet
weak
var
collectionView
:
UICollectionView
!
@IBOutlet
weak
var
collectionViewHeightConstraint
:
NSLayoutConstraint
!
@IBOutlet
weak
var
collectionViewBottom
:
NSLayoutConstraint
!
weak
var
delegate
:
MyRewardsOffersScrollTableViewCellDelegate
?
var
data
:
SectionModel
?
...
...
@@ -75,8 +76,14 @@ protocol MyRewardsOffersScrollTableViewCellDelegate: AnyObject {
// Configure the view for the selected state
}
func
configureCell
(
data
:
SectionModel
?)
{
func
configureCell
(
data
:
SectionModel
?
,
isInProfile
:
Bool
?
=
false
)
{
self
.
data
=
data
if
(
isInProfile
??
false
)
{
collectionViewBottom
.
constant
=
40
}
else
{
collectionViewBottom
.
constant
=
0
}
// Update collection view height based on section
if
data
?
.
title
==
"Αγαπημένα"
{
...
...
SwiftWarplyFramework/SwiftWarplyFramework/screens/ProfileViewController/ProfileViewController.swift
View file @
7e5f773
...
...
@@ -306,7 +306,7 @@ extension ProfileViewController: UITableViewDelegate, UITableViewDataSource {
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"MyRewardsOffersScrollTableViewCell"
,
for
:
indexPath
)
as!
MyRewardsOffersScrollTableViewCell
cell
.
delegate
=
self
// Set the offers delegate
cell
.
configureCell
(
data
:
self
.
forYouOffersSection
)
cell
.
configureCell
(
data
:
self
.
forYouOffersSection
,
isInProfile
:
true
)
return
cell
...
...
Please
register
or
login
to post a comment