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
2ddcda01
Commit
2ddcda01
authored
Oct 17, 2015
by
Daniel Dahan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
update SideNavigationViewController API
parent
03e724c4
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
9 deletions
+8
-9
Source/SideNavigationViewController.swift
+8
-9
No files found.
Source/SideNavigationViewController.swift
View file @
2ddcda01
...
@@ -58,10 +58,10 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
...
@@ -58,10 +58,10 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
return
0
==
NSBundle
.
mainBundle
()
.
objectForInfoDictionaryKey
(
"UIViewControllerBasedStatusBarAppearance"
)
as?
Int
return
0
==
NSBundle
.
mainBundle
()
.
objectForInfoDictionaryKey
(
"UIViewControllerBasedStatusBarAppearance"
)
as?
Int
}
}
/
/
/
**
// :name: isU
serInteractionEnabled
:name: u
serInteractionEnabled
/
/
*
/
internal
var
isU
serInteractionEnabled
:
Bool
{
public
var
u
serInteractionEnabled
:
Bool
{
get
{
get
{
return
mainViewController
!.
view
.
userInteractionEnabled
return
mainViewController
!.
view
.
userInteractionEnabled
}
}
...
@@ -199,12 +199,12 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
...
@@ -199,12 +199,12 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
let
h
:
CGFloat
=
vc
.
height
let
h
:
CGFloat
=
vc
.
height
let
d
:
Double
=
Double
(
0
==
velocity
?
animationDuration
:
fmax
(
0.1
,
fmin
(
1
,
Double
(
vc
.
x
/
velocity
))))
let
d
:
Double
=
Double
(
0
==
velocity
?
animationDuration
:
fmax
(
0.1
,
fmin
(
1
,
Double
(
vc
.
x
/
velocity
))))
toggleStatusBar
(
true
)
MaterialAnimation
.
animationWithDuration
(
d
,
animations
:
{
MaterialAnimation
.
animationWithDuration
(
d
,
animations
:
{
vc
.
position
=
CGPointMake
(
w
/
2
,
h
/
2
)
vc
.
position
=
CGPointMake
(
w
/
2
,
h
/
2
)
self
.
backdropLayer
.
hidden
=
false
self
.
backdropLayer
.
hidden
=
false
})
{
})
{
self
.
isUserInteractionEnabled
=
false
self
.
userInteractionEnabled
=
false
self
.
toggleStatusBar
(
true
)
}
}
}
}
}
}
...
@@ -218,12 +218,12 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
...
@@ -218,12 +218,12 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
let
h
:
CGFloat
=
vc
.
height
let
h
:
CGFloat
=
vc
.
height
let
d
:
Double
=
Double
(
0
==
velocity
?
animationDuration
:
fmax
(
0.1
,
fmin
(
1
,
Double
(
vc
.
x
/
velocity
))))
let
d
:
Double
=
Double
(
0
==
velocity
?
animationDuration
:
fmax
(
0.1
,
fmin
(
1
,
Double
(
vc
.
x
/
velocity
))))
toggleStatusBar
(
false
)
MaterialAnimation
.
animationWithDuration
(
d
,
animations
:
{
MaterialAnimation
.
animationWithDuration
(
d
,
animations
:
{
vc
.
position
=
CGPointMake
(
-
w
/
2
,
h
/
2
)
vc
.
position
=
CGPointMake
(
-
w
/
2
,
h
/
2
)
self
.
backdropLayer
.
hidden
=
true
self
.
backdropLayer
.
hidden
=
true
})
{
})
{
self
.
isUserInteractionEnabled
=
true
self
.
userInteractionEnabled
=
true
self
.
toggleStatusBar
(
false
)
}
}
}
}
}
}
...
@@ -270,7 +270,6 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
...
@@ -270,7 +270,6 @@ public class SideNavigationViewController: UIViewController, UIGestureRecognizer
MaterialAnimation
.
animationDisabled
({
MaterialAnimation
.
animationDisabled
({
self
.
leftView
!.
position
=
CGPointMake
(
-
self
.
leftView
!.
width
/
2
,
self
.
leftView
!.
height
/
2
)
self
.
leftView
!.
position
=
CGPointMake
(
-
self
.
leftView
!.
width
/
2
,
self
.
leftView
!.
height
/
2
)
self
.
leftView
!.
zPosition
=
1000
self
.
leftView
!.
zPosition
=
1000
self
.
leftView
!.
masksToBounds
=
true
})
})
prepareViewControllerWithinContainer
(
leftViewController
!
,
container
:
leftView
!
)
prepareViewControllerWithinContainer
(
leftViewController
!
,
container
:
leftView
!
)
...
...
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