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
2022-08-12 11:56:38 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
c4d047002e474b11b926a958c8e29f5953c3fc69
c4d04700
1 parent
c55330fc
fix attributedStrings crushing
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
7 deletions
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
SwiftWarplyFramework/SwiftWarplyFramework/AnalysisHeaderMessageViewCell.swift
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
c4d0470
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/AnalysisHeaderMessageViewCell.swift
View file @
c4d0470
...
...
@@ -45,8 +45,8 @@ class AnalysisHeaderMessageViewCell: UITableViewCell {
let
coupBoldText2
=
String
(
loyaltyBadge
.
_couponCount
)
let
coupNormalText3
=
" κουπόνια!"
let
attrRegular
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Regular"
,
size
:
17
)]
let
attrBold
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Bold"
,
size
:
17
)]
let
attrRegular
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Regular"
,
size
:
17
)
??
UIFont
.
systemFont
(
ofSize
:
16
)
]
let
attrBold
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Bold"
,
size
:
17
)
??
UIFont
.
boldSystemFont
(
ofSize
:
16
)
]
let
coupAttributedString
=
NSMutableAttributedString
(
string
:
coupNormalText1
,
attributes
:
attrRegular
)
let
coupBoldString
=
NSMutableAttributedString
(
string
:
coupBoldText
,
attributes
:
attrBold
)
...
...
SwiftWarplyFramework/SwiftWarplyFramework/Main.storyboard
View file @
c4d0470
This diff is collapsed. Click to expand it.
SwiftWarplyFramework/SwiftWarplyFramework/WalletViewController.swift
View file @
c4d0470
...
...
@@ -132,8 +132,8 @@ import SwiftEventBus
let
boldText
=
totalCouponValueString
+
"€"
let
normalText2
=
" με το DEALS for YOU!"
let
attrRegular
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Regular"
,
size
:
17
)]
let
attrBold
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Bold"
,
size
:
17
)]
let
attrRegular
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Regular"
,
size
:
17
)
??
UIFont
.
systemFont
(
ofSize
:
16
)
]
let
attrBold
=
[
NSAttributedString
.
Key
.
font
:
UIFont
(
name
:
"PFSquareSansPro-Bold"
,
size
:
17
)
??
UIFont
.
boldSystemFont
(
ofSize
:
16
)
]
let
attributedString
=
NSMutableAttributedString
(
string
:
normalText1
,
attributes
:
attrRegular
)
let
boldString
=
NSMutableAttributedString
(
string
:
boldText
,
attributes
:
attrBold
)
...
...
@@ -262,8 +262,6 @@ import SwiftEventBus
dfyLogoImageTopSpace
.
constant
=
0
}
print
(
"======= 1 ======="
)
myPresentsLabel
.
text
=
"Τα δώρα μου"
if
(
coupons
.
count
>
0
)
{
myPresentsLabel
.
isHidden
=
false
...
...
@@ -279,7 +277,6 @@ import SwiftEventBus
emptyView
.
isHidden
=
true
}
print
(
"======= 2 ======="
)
}
public
override
func
viewWillAppear
(
_
animated
:
Bool
)
{
...
...
Please
register
or
login
to post a comment