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-10 11:02:08 +0300
Browse Files
Options
Browse Files
Download
Email Patches
Plain Diff
Commit
d8a668c6a9c759ae9472e125718e72dc433d8a1a
d8a668c6
1 parent
5ced3eb2
fix header title fontsize
Show 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/GiftsViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
SwiftWarplyFramework/SwiftWarplyFramework.xcworkspace/xcuserdata/manos.xcuserdatad/UserInterfaceState.xcuserstate
View file @
d8a668c
No preview for this file type
SwiftWarplyFramework/SwiftWarplyFramework/GiftsViewController.swift
View file @
d8a668c
...
...
@@ -33,7 +33,7 @@ import SwiftEventBus
}
setBackButton
()
setNavigationTitle
(
"GIFTS for YOU"
)
setNavigationTitle
(
"GIFTS for YOU"
,
"bold"
)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
...
...
SwiftWarplyFramework/SwiftWarplyFramework/MFYViewController.swift
View file @
d8a668c
...
...
@@ -22,7 +22,7 @@ import SwiftEventBus
self
.
hidesBottomBarWhenPushed
=
true
setBackButton
()
setNavigationTitle
(
"MORE for YOU"
)
setNavigationTitle
(
"MORE for YOU"
,
"bold"
)
tableView
.
delegate
=
self
tableView
.
dataSource
=
self
...
...
SwiftWarplyFramework/SwiftWarplyFramework/ViewControllerExtensions.swift
View file @
d8a668c
...
...
@@ -36,13 +36,17 @@ extension UIViewController {
self
.
navigationController
?
.
popViewController
(
animated
:
true
)
}
func
setNavigationTitle
(
_
title
:
String
)
{
func
setNavigationTitle
(
_
title
:
String
,
_
fontWeight
:
String
?
=
"medium"
)
{
let
uiscreen
:
CGRect
=
UIScreen
.
main
.
bounds
let
titleLabel
=
UILabel
(
frame
:
CGRect
(
x
:
0
,
y
:
0
,
width
:
uiscreen
.
width
*
0.7
,
height
:
uiscreen
.
height
*
0.03
))
titleLabel
.
text
=
title
titleLabel
.
textColor
=
UIColor
(
red
:
0.21
,
green
:
0.32
,
blue
:
0.41
,
alpha
:
1.00
)
titleLabel
.
font
=
UIFont
.
systemFont
(
ofSize
:
16
,
weight
:
UIFont
.
Weight
.
medium
)
if
(
fontWeight
==
"bold"
)
{
titleLabel
.
font
=
UIFont
.
systemFont
(
ofSize
:
16
,
weight
:
UIFont
.
Weight
.
bold
)
}
else
{
titleLabel
.
font
=
UIFont
.
systemFont
(
ofSize
:
16
,
weight
:
UIFont
.
Weight
.
semibold
)
}
titleLabel
.
adjustsFontSizeToFitWidth
=
true
titleLabel
.
textAlignment
=
.
center
self
.
navigationItem
.
titleView
=
titleLabel
...
...
Please
register
or
login
to post a comment