prime_sliding_menu 0.1.4 → 0.1.5
Sign up to get free protection for your applications and to get access to all the features.
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NDhiMjJiMzRiNDBjYTRmMDVlZGVkZWUxN2JlMTVmYWUxMTUxMDBjMw==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
NGJiMTZhOGI1MDNkMGVlYTFiZGQ2ODc0NGRiMjk2YjAwMWQ4ODBjOA==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
MzMxMzAzN2I5MzBkZWNmNWEzYWI3NGFhYTU5MDQzYjExOWE3MmMzZjNhMTRh
|
10
|
+
OGRiZDZmZjY1YjhlMDFjMWYwZWE0ZjcxNzIzNzgzMjZkMGNkMzE3MThmNTUz
|
11
|
+
MzM5MGM5NGRhNDFjYWEwM2FlNjYxOWExN2QzZTBlNDMzMzRmNmQ=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZjBmMWU4Yjk0YjEzYzcwYWZiOGRmODQ3NDEzZTI0MzQ2OTI5ZGJkYjJkYjAy
|
14
|
+
MTFhODQxMzAwNDcyNzM4NGUwMDFhZWFmZDM3NGNmYTcxM2Q0MmEwN2RkNWMy
|
15
|
+
NGYyMjhlZmMxYzhhMDNjYzdkNWQ5Y2MxMTlmYWZlOWQ0MjRkMjM=
|
@@ -20,13 +20,17 @@ module PrimeSlidingMenu
|
|
20
20
|
end
|
21
21
|
|
22
22
|
def toggle_sidebar
|
23
|
-
if
|
23
|
+
if !sidebar_visible?
|
24
24
|
show_sidebar
|
25
25
|
else
|
26
26
|
hide_sidebar
|
27
27
|
end
|
28
28
|
end
|
29
29
|
|
30
|
+
def sidebar_visible?
|
31
|
+
self.currentTopViewPosition == 1
|
32
|
+
end
|
33
|
+
|
30
34
|
def menu_controller=(c)
|
31
35
|
@menu_controller_ref = prepare_controller(c)
|
32
36
|
self.underLeftViewController = @menu_controller_ref
|
@@ -38,6 +42,7 @@ module PrimeSlidingMenu
|
|
38
42
|
self.topViewController = @content_controller_ref
|
39
43
|
@content_controller_ref.view.addGestureRecognizer self.panGesture
|
40
44
|
@content_controller_ref.view.addGestureRecognizer self.resetTapGesture
|
45
|
+
self.resetTapGesture.delegate = self
|
41
46
|
else
|
42
47
|
content_controller.viewControllers = [@content_controller_ref]
|
43
48
|
end
|
@@ -52,6 +57,10 @@ module PrimeSlidingMenu
|
|
52
57
|
self.topViewController
|
53
58
|
end
|
54
59
|
|
60
|
+
def gestureRecognizer(gestureRecognizer, shouldReceiveTouch: touch)
|
61
|
+
sidebar_visible?
|
62
|
+
end
|
63
|
+
|
55
64
|
private
|
56
65
|
|
57
66
|
def should_reinit_content?(new_controller)
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: prime_sliding_menu
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.1.
|
4
|
+
version: 0.1.5
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- Iskander Haziev
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2014-02-
|
11
|
+
date: 2014-02-04 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: cocoapods
|