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-01-24 10:34:57 +0200
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
ecb186cb4e626b9285d0ac2528987244bc7d8b28
ecb186cb
1 parent
1d0849ce
MarketPassViewController ui fixes
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/MarketPassViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MarketPassViewController.swift
View file @
ecb186c
...
...
@@ -175,7 +175,9 @@ import AVFoundation
barcodeImageHeight
.
constant
=
0
}
let
couponsValueString
=
String
(
marketPassDetails
?
.
_total_available_discount
??
0.0
)
let
couponsValueFloat
=
marketPassDetails
?
.
_total_available_discount
??
0.0
let
couponsValueString
=
String
(
format
:
"%.2f"
,
couponsValueFloat
)
// let couponsValueString = String(marketPassDetails?._total_available_discount ?? 0.0)
let
attrRegular
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PeridotPE-Regular"
,
size
:
17
)
??
UIFont
.
systemFont
(
ofSize
:
16
),
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
white
]
let
attrBold
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PeridotPE-Bold"
,
size
:
17
)
??
UIFont
.
boldSystemFont
(
ofSize
:
16
),
NSAttributedString
.
Key
.
foregroundColor
:
UIColor
.
white
]
...
...
@@ -193,7 +195,7 @@ import AVFoundation
// Create a horizontal stack view
let
stackView
=
UIStackView
()
stackView
.
axis
=
.
horizontal
stackView
.
spacing
=
1
5
// Spacing between images
stackView
.
spacing
=
5
// Spacing between images
stackView
.
alignment
=
.
center
stackView
.
distribution
=
.
equalSpacing
...
...
@@ -201,8 +203,8 @@ import AVFoundation
for
sm
in
supermarkets
{
let
imageView
=
UIImageView
()
imageView
.
contentMode
=
.
scaleAspectFit
imageView
.
widthAnchor
.
constraint
(
equalToConstant
:
4
0
)
.
isActive
=
true
imageView
.
heightAnchor
.
constraint
(
equalToConstant
:
4
0
)
.
isActive
=
true
imageView
.
widthAnchor
.
constraint
(
equalToConstant
:
5
0
)
.
isActive
=
true
imageView
.
heightAnchor
.
constraint
(
equalToConstant
:
5
0
)
.
isActive
=
true
imageView
.
load
(
link
:
sm
.
_logo
,
placeholder
:
UIImage
(),
cache
:
URLCache
())
...
...
Please
register
or
login
to post a comment