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
5566ea5b
Commit
5566ea5b
authored
Sep 12, 2018
by
Orkhan Alikhanov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Minor clean up
parent
10c309c0
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
4 deletions
+4
-4
Sources/iOS/BottomNavigationController.swift
+3
-3
Sources/iOS/Material+CALayer.swift
+1
-1
No files found.
Sources/iOS/BottomNavigationController.swift
View file @
5566ea5b
...
@@ -41,11 +41,11 @@ extension UIViewController {
...
@@ -41,11 +41,11 @@ extension UIViewController {
}
}
}
}
private
class
MaterialTabBar
:
UITabBar
{
private
class
MaterialTabBar
:
UITabBar
{
override
func
sizeThatFits
(
_
size
:
CGSize
)
->
CGSize
{
override
func
sizeThatFits
(
_
size
:
CGSize
)
->
CGSize
{
var
v
=
super
.
sizeThatFits
(
size
)
var
v
=
super
.
sizeThatFits
(
size
)
let
offset
=
v
.
height
-
49
let
offset
=
v
.
height
-
HeightPreset
.
normal
.
rawValue
v
.
height
=
CGFloat
(
heightPreset
.
rawValue
)
+
offset
v
.
height
=
heightPreset
.
rawValue
+
offset
return
v
return
v
}
}
}
}
...
...
Sources/iOS/Material+CALayer.swift
View file @
5566ea5b
...
@@ -38,7 +38,7 @@ fileprivate class MaterialLayer {
...
@@ -38,7 +38,7 @@ fileprivate class MaterialLayer {
/// A property that sets the height of the layer's frame.
/// A property that sets the height of the layer's frame.
fileprivate
var
heightPreset
=
HeightPreset
.
default
{
fileprivate
var
heightPreset
=
HeightPreset
.
default
{
didSet
{
didSet
{
layer
?
.
height
=
CGFloat
(
heightPreset
.
rawValue
)
layer
?
.
height
=
heightPreset
.
rawValue
}
}
}
}
...
...
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