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
2024-05-08 16:59:29 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
218d17ecc0606d832a23b9e1dd75b9f99b18c370
218d17ec
1 parent
0feb5901
add WalletActiveCouponsScrollTableViewCell
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
115 additions
and
0 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/project.pbxproj
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/WalletActiveCouponsScrollTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcodeproj/project.pbxproj
View file @
218d17e
...
...
@@ -21,6 +21,7 @@
1E2966EA2837A21D00F83FAC /* RSBarcodes_Swift in Frameworks */ = {isa = PBXBuildFile; productRef = 1E2966E92837A21D00F83FAC /* RSBarcodes_Swift */; };
1E4195FB2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */; };
1E4410B128F5855000859F92 /* CampaignCategory.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E4410B028F5855000859F92 /* CampaignCategory.swift */; };
1E46B4BF2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E46B4BE2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift */; };
1E479FB329DD948B00C38193 /* WalletBadgesTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E479FB229DD948B00C38193 /* WalletBadgesTableViewCell.swift */; };
1E51678E2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */; };
1E64E8FD2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift in Sources */ = {isa = PBXBuildFile; fileRef = 1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */; };
...
...
@@ -212,6 +213,7 @@
1E15B9A329DDD211000A408D /* MarketHistoryViewController.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = MarketHistoryViewController.swift; sourceTree = "<group>"; };
1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletActiveCouponsTableViewCell.swift; sourceTree = "<group>"; };
1E4410B028F5855000859F92 /* CampaignCategory.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = CampaignCategory.swift; sourceTree = "<group>"; };
1E46B4BE2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletActiveCouponsScrollTableViewCell.swift; sourceTree = "<group>"; };
1E479FB229DD948B00C38193 /* WalletBadgesTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletBadgesTableViewCell.swift; sourceTree = "<group>"; };
1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletVouchersBannerTableViewCell.swift; sourceTree = "<group>"; };
1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.swift; path = WalletQuestionnaireBannerTableViewCell.swift; sourceTree = "<group>"; };
...
...
@@ -541,6 +543,7 @@
E6A77861282933E50045BBA8 /* Main.storyboard */,
1E7B9A5729F6ACF400B37E13 /* WalletBannersTableViewCell.swift */,
1E4195FA2AE691D20094DADE /* WalletActiveCouponsTableViewCell.swift */,
1E46B4BE2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift */,
1E51678D2AE6934100FE66C3 /* WalletVouchersBannerTableViewCell.swift */,
1EA04EC02AE7FCE700389A84 /* WalletSpinnerTableViewCell.swift */,
1E64E8FC2B8DE457001BA46E /* WalletQuestionnaireBannerTableViewCell.swift */,
...
...
@@ -1058,6 +1061,7 @@
1E029A4129E002CF00CC7447 /* UnifiedCouponBCHeaderTableViewCell.swift in Sources */,
1ECA079128D9E3BA00D2BDE0 /* CSMButton.swift in Sources */,
1E4410B128F5855000859F92 /* CampaignCategory.swift in Sources */,
1E46B4BF2BEBB68800D5B488 /* WalletActiveCouponsScrollTableViewCell.swift in Sources */,
E6A7790B282933E60045BBA8 /* WLPushManager.m in Sources */,
1E15B9A229DDCF02000A408D /* MarketSharingHistoryViewController.swift in Sources */,
A079366E2885D07700064122 /* AnalysisChildViewController.swift in Sources */,
...
...
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
218d17e
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
218d17e
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/WalletActiveCouponsScrollTableViewCell.swift
0 → 100644
View file @
218d17e
//
// WalletActiveCouponsScrollTableViewCell.swift
// SwiftWarplyFramework
//
// Created by Manos Chorianopoulos on 8/5/24.
//
import
UIKit
@objc
public
class
WalletActiveCouponsScrollTableViewCell
:
UITableViewCell
{
@IBOutlet
weak
var
sectionTitleLabel
:
UILabel
!
@IBOutlet
weak
var
historyButtonImage
:
UIImageView
!
@IBOutlet
weak
var
dfyViewParent
:
UIView
!
@IBOutlet
weak
var
dfyView
:
UIView
!
@IBOutlet
weak
var
dfyImage
:
UIImageView
!
@IBOutlet
weak
var
dfyLabel
:
UILabel
!
@IBOutlet
weak
var
dfyCountView
:
UIView
!
@IBOutlet
weak
var
dfyCountLabel
:
UILabel
!
@IBOutlet
weak
var
smView
:
UIView
!
@IBOutlet
weak
var
smImage
:
UIImageView
!
@IBOutlet
weak
var
smLabel
:
UILabel
!
@IBOutlet
weak
var
smCountView
:
UIView
!
@IBOutlet
weak
var
smCountLabel
:
UILabel
!
@IBOutlet
weak
var
gfyView
:
UIView
!
@IBOutlet
weak
var
gfyImage
:
UIImageView
!
@IBOutlet
weak
var
gfyLabel
:
UILabel
!
@IBOutlet
weak
var
gfyCountView
:
UIView
!
@IBOutlet
weak
var
gfyCountLabel
:
UILabel
!
public
override
func
awakeFromNib
()
{
super
.
awakeFromNib
()
// Initialization code
// Section Header
sectionTitleLabel
.
text
=
"Κουπόνια"
historyButtonImage
.
image
=
UIImage
(
named
:
"wallet_history_blue"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
historyButtonImage
.
image
=
historyButtonImage
.
image
?
.
withRenderingMode
(
.
alwaysTemplate
)
historyButtonImage
.
tintColor
=
UIColor
(
red
:
0.13
,
green
:
0.13
,
blue
:
0.13
,
alpha
:
1.00
)
// DFY Banner
// dfyViewParent.backgroundColor = UIColor(red: 0.95, green: 0.95, blue: 0.95, alpha: 1.00)
dfyViewParent
.
backgroundColor
=
.
white
dfyViewParent
.
layer
.
cornerRadius
=
16.0
dfyViewParent
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
dfyViewParent
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
dfyViewParent
.
layer
.
shadowOpacity
=
1.0
dfyViewParent
.
layer
.
shadowRadius
=
2.0
// dfyView.backgroundColor = UIColor(red: 0.46, green: 0.75, blue: 0.45, alpha: 0.05)
dfyView
.
backgroundColor
=
.
white
dfyView
.
layer
.
cornerRadius
=
16.0
dfyImage
.
image
=
UIImage
(
named
:
"wallet_banner_dfy"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
dfyLabel
.
text
=
"DEALS FOR YOU"
dfyCountView
.
layer
.
cornerRadius
=
4.0
dfyCountView
.
backgroundColor
=
UIColor
(
red
:
0.92
,
green
:
0.75
,
blue
:
0.41
,
alpha
:
1.00
)
// SM Banner
// smView.backgroundColor = UIColor(red: 1.00, green: 0.99, blue: 0.97, alpha: 1.00)
smView
.
backgroundColor
=
.
white
smView
.
layer
.
cornerRadius
=
16.0
smView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
smView
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
smView
.
layer
.
shadowOpacity
=
1.0
smView
.
layer
.
shadowRadius
=
2.0
smImage
.
image
=
UIImage
(
named
:
"wallet_banner_sm"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
smLabel
.
text
=
"SUPERMARKET DEALS"
smCountView
.
layer
.
cornerRadius
=
4.0
smCountView
.
backgroundColor
=
UIColor
(
red
:
0.92
,
green
:
0.75
,
blue
:
0.41
,
alpha
:
1.00
)
// GFY Banner
// gfyView.backgroundColor = UIColor(red: 0.96, green: 0.97, blue: 0.98, alpha: 1.00)
gfyView
.
backgroundColor
=
.
white
gfyView
.
layer
.
cornerRadius
=
16.0
gfyView
.
layer
.
shadowColor
=
UIColor
(
red
:
0.00
,
green
:
0.00
,
blue
:
0.00
,
alpha
:
0.2
)
.
cgColor
gfyView
.
layer
.
shadowOffset
=
CGSize
(
width
:
0.0
,
height
:
1.0
)
gfyView
.
layer
.
shadowOpacity
=
1.0
gfyView
.
layer
.
shadowRadius
=
2.0
gfyImage
.
image
=
UIImage
(
named
:
"wallet_banner_gfy"
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
// gfyLabel.text = "GIFTS FOR YOU"
// gfyLabel.text = "Free coupons"
gfyLabel
.
text
=
"FREE COUPONS"
gfyCountView
.
layer
.
cornerRadius
=
4.0
gfyCountView
.
backgroundColor
=
UIColor
(
red
:
0.92
,
green
:
0.75
,
blue
:
0.41
,
alpha
:
1.00
)
}
public
override
func
setSelected
(
_
selected
:
Bool
,
animated
:
Bool
)
{
super
.
setSelected
(
selected
,
animated
:
animated
)
// Configure the view for the selected state
}
func
configureCell
(
dfyCount
:
Int
,
smCount
:
Int
,
gfyCount
:
Int
)
{
dfyCountLabel
.
text
=
String
(
dfyCount
)
smCountLabel
.
text
=
String
(
smCount
)
gfyCountLabel
.
text
=
String
(
gfyCount
)
}
}
Please
register
or
login
to post a comment