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-10-18 16:07:43 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
e357bd6f77ea1162842f4b5bf6132058a5e9def9
e357bd6f
1 parent
10f194d3
PopupMerchantsViewController fixes
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
8 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/MerchantTableViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/PopupMerchantsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
e357bd6
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
e357bd6
...
...
@@ -6552,7 +6552,7 @@
<constraints>
<constraint
firstItem=
"MNf-7L-OWL"
firstAttribute=
"leading"
secondItem=
"cSR-WK-qb0"
secondAttribute=
"leading"
constant=
"20"
id=
"0UF-Fk-tDs"
/>
<constraint
firstAttribute=
"trailing"
secondItem=
"MNf-7L-OWL"
secondAttribute=
"trailing"
constant=
"20"
id=
"3aK-Rx-22N"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"vet-Po-Bmf"
secondAttribute=
"bottom"
constant=
"30"
id=
"B03-fG-aC2"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"vet-Po-Bmf"
secondAttribute=
"bottom"
id=
"B03-fG-aC2"
/>
<constraint
firstItem=
"vet-Po-Bmf"
firstAttribute=
"leading"
secondItem=
"cSR-WK-qb0"
secondAttribute=
"leading"
id=
"F8e-cg-wdq"
/>
<constraint
firstItem=
"MNf-7L-OWL"
firstAttribute=
"top"
secondItem=
"cSR-WK-qb0"
secondAttribute=
"top"
constant=
"15"
id=
"N8O-in-CB3"
/>
<constraint
firstItem=
"vet-Po-Bmf"
firstAttribute=
"top"
secondItem=
"MNf-7L-OWL"
secondAttribute=
"bottom"
constant=
"15"
id=
"hl9-87-bJ7"
/>
...
...
@@ -6563,9 +6563,9 @@
<color
key=
"backgroundColor"
red=
"0.1529411765"
green=
"0.1529411765"
blue=
"0.1529411765"
alpha=
"0.57999999999999996"
colorSpace=
"calibratedRGB"
/>
<constraints>
<constraint
firstAttribute=
"trailing"
secondItem=
"cSR-WK-qb0"
secondAttribute=
"trailing"
id=
"G7t-Dj-L0z"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"cSR-WK-qb0"
secondAttribute=
"bottom"
id=
"PgS-E9-7aE"
/>
<constraint
firstItem=
"cSR-WK-qb0"
firstAttribute=
"leading"
secondItem=
"iUx-aw-MaF"
secondAttribute=
"leading"
id=
"WuY-gU-rja"
/>
<constraint
firstItem=
"cSR-WK-qb0"
firstAttribute=
"height"
relation=
"lessThanOrEqual"
secondItem=
"iUx-aw-MaF"
secondAttribute=
"height"
multiplier=
"0.7"
id=
"ZRT-Sj-HhH"
/>
<constraint
firstAttribute=
"bottom"
secondItem=
"cSR-WK-qb0"
secondAttribute=
"bottom"
id=
"cN3-Su-boG"
/>
</constraints>
</view>
</subviews>
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MerchantTableViewCell.swift
View file @
e357bd6
...
...
@@ -78,7 +78,7 @@ class MerchantTableViewCell: UITableViewCell {
buttonTitleLable
.
text
=
buttonTitle
if
let
iconImage
{
self
.
buttonIconImage
.
image
=
UIImage
(
named
:
iconImage
)
self
.
buttonIconImage
.
image
=
UIImage
(
named
:
iconImage
,
in
:
MyEmptyClass
.
resourceBundle
(),
compatibleWith
:
nil
)
self
.
buttonIconImage
.
isHidden
=
false
}
else
{
self
.
buttonIconImage
.
isHidden
=
true
...
...
SwiftWarplyFramework/SwiftWarplyFramework/PopupMerchantsViewController.swift
View file @
e357bd6
...
...
@@ -27,7 +27,7 @@ class PopupMerchantsViewController: UIViewController {
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
tableView
.
contentInset
.
top
=
75
tableView
.
contentInset
.
top
=
50
popupView
.
clipsToBounds
=
true
popupView
.
layer
.
cornerRadius
=
16
...
...
@@ -45,6 +45,7 @@ class PopupMerchantsViewController: UIViewController {
// MARK: - UIButton Actions
@IBAction
func
closeButtonAction
(
_
sender
:
Any
)
{
self
.
dismiss
(
animated
:
true
,
completion
:
{})
}
}
...
...
@@ -83,6 +84,9 @@ extension PopupMerchantsViewController: UITableViewDelegate, UITableViewDataSour
let
cell
=
tableView
.
dequeueReusableCell
(
withIdentifier
:
"MerchantTableViewCellId"
,
for
:
indexPath
)
as!
MerchantTableViewCell
cell
.
configureCell
(
merchant
:
merchantList
[
indexPath
.
row
],
buttonTitle
:
self
.
buttonTitle
??
"Βρες το"
,
iconImage
:
buttonIcon
)
// Set the delegate to self
cell
.
delegate
=
self
return
cell
}
else
{
...
...
Please
register
or
login
to post a comment