Skip to content
Projects
Groups
Snippets
Help
This project
Loading...
Sign in / Register
Toggle navigation
M
Material
Overview
Overview
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Dmitriy Stepanets
Material
Commits
862927ac
Commit
862927ac
authored
Aug 15, 2017
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
updated BottomNavigationController to show divider line at top in initial setup
parent
122e7e5f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
5 deletions
+6
-5
Sources/iOS/BottomNavigationController.swift
+6
-5
No files found.
Sources/iOS/BottomNavigationController.swift
View file @
862927ac
...
@@ -130,19 +130,20 @@ open class BottomNavigationController: UITabBarController {
...
@@ -130,19 +130,20 @@ open class BottomNavigationController: UITabBarController {
when subclassing.
when subclassing.
*/
*/
open
func
prepare
()
{
open
func
prepare
()
{
view
.
backgroundColor
=
.
white
view
.
clipsToBounds
=
true
view
.
clipsToBounds
=
true
view
.
contentScaleFactor
=
Screen
.
scale
view
.
backgroundColor
=
.
white
view
.
contentScaleFactor
=
Screen
.
scale
prepareTabBar
()
prepareTabBar
()
}
}
}
}
extension
BottomNavigationController
{
fileprivate
extension
BottomNavigationController
{
/// Prepares the tabBar.
/// Prepares the tabBar.
f
ileprivate
f
unc
prepareTabBar
()
{
func
prepareTabBar
()
{
tabBar
.
isTranslucent
=
false
tabBar
.
isTranslucent
=
false
tabBar
.
heightPreset
=
.
normal
tabBar
.
heightPreset
=
.
normal
tabBar
.
d
epthPreset
=
.
depth1
tabBar
.
d
ividerColor
=
Color
.
grey
.
lighten3
tabBar
.
dividerAlignment
=
.
top
tabBar
.
dividerAlignment
=
.
top
let
image
=
UIImage
()
let
image
=
UIImage
()
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment