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
2023-04-12 11:14:03 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
82fd5792f3dd2f3580eac008a489d287aa6226fc
82fd5792
1 parent
e825ab15
nav title ui fix
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
82fd579
...
...
@@ -113,16 +113,16 @@ extension UIViewController {
if
UIDevice
.
current
.
userInterfaceIdiom
==
.
pad
{
// iPad
if
(
fontWeight
==
"bold"
)
{
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
2
0
)
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
2
1
)
}
else
{
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
2
0
)
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
2
1
)
}
}
else
{
// not iPad (iPhone, mac, tv, carPlay, unspecified)
if
(
fontWeight
==
"bold"
)
{
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
7
)
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
8
)
}
else
{
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
7
)
titleLabel
.
font
=
UIFont
(
name
:
"BTCosmo-Bold"
,
size
:
1
8
)
}
}
titleLabel
.
adjustsFontSizeToFitWidth
=
true
...
...
Please
register
or
login
to post a comment