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
6c8a6cfe
Commit
6c8a6cfe
authored
Jun 07, 2018
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
issue-1052: Minor stylistic updates to code changes.
parent
f30c239a
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
13 additions
and
10 deletions
+13
-10
Sources/iOS/NavigationDrawerController.swift
+13
-10
No files found.
Sources/iOS/NavigationDrawerController.swift
View file @
6c8a6cfe
...
...
@@ -232,7 +232,7 @@ open class NavigationDrawerController: TransitionController {
*/
open
var
isDimEnabled
=
true
{
didSet
{
self
.
updateDim
()
updateDim
()
}
}
...
...
@@ -240,12 +240,13 @@ open class NavigationDrawerController: TransitionController {
The alpha value of the rootViewController when left/right drawer
is presented, the value should be between 0.0 - 1.0. Defaults is 0.5
*/
open
var
dim
Amount
:
CGFloat
=
0.5
{
open
var
dim
Value
:
CGFloat
=
0.5
{
didSet
{
if
dimAmount
<
0.0
||
dimAmount
>
1.0
{
dim
Amount
=
0.5
if
0
>
dimValue
||
1
<
dimValue
{
dim
Value
=
0.5
}
self
.
updateDim
()
updateDim
()
}
}
...
...
@@ -801,7 +802,6 @@ open class NavigationDrawerController: TransitionController {
}
self
.
isAnimating
=
false
self
.
delegate
?
.
navigationDrawerController
?(
navigationDrawerController
:
self
,
didOpen
:
.
right
)
}
}
...
...
@@ -895,7 +895,7 @@ open class NavigationDrawerController: TransitionController {
self
.
isAnimating
=
false
self
.
isUserInteractionEnabled
=
true
self
.
delegate
?
.
navigationDrawerController
?(
navigationDrawerController
:
self
,
didClose
:
.
right
)
}
}
...
...
@@ -1064,13 +1064,16 @@ open class NavigationDrawerController: TransitionController {
fileprivate
func
updateDim
()
{
if
isDimEnabled
{
if
isOpened
{
self
.
rootViewController
.
view
.
alpha
=
1.0
rootViewController
.
view
.
alpha
=
1.0
}
else
{
self
.
rootViewController
.
view
.
alpha
=
self
.
dimAmount
rootViewController
.
view
.
alpha
=
dimValue
}
return
}
self
.
rootViewController
.
view
.
alpha
=
1.0
rootViewController
.
view
.
alpha
=
1.0
}
}
...
...
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