prime_sliding_menu 0.1.3 → 0.1.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- checksums.yaml +8 -8
- data/README.md +16 -3
- data/lib/prime_sliding_menu/sidebar_container_screen.rb +2 -1
- data/lib/prime_sliding_menu/version.rb +1 -1
- metadata +1 -1
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
NGJmM2Y4ZTM2Zjg0MTgzYjkzZDkwZGY3MDU0NmMxYjZhYTU3ZWVkZg==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
ODUyMzE1NjBlNDRiNzJhNmJmZjAwYzk3YzQ3ZGRiMDkxNDJlYmE1Nw==
|
7
7
|
!binary "U0hBNTEy":
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
ZTM2MWU5OWNkMTUyY2E2MzM3MTg4OWM3YzkwYmQ5MDVkYjY2NGQyOTAzMDNh
|
10
|
+
NWY1Y2JmMDQzOTAyYzEzNjdkY2MyOWFhZDNlODhjODg5MDNhZjM5ZmNiYmQ0
|
11
|
+
ODgyNGNlNTkwMTc5OGZhMDY4NDJiNDE3YmNmYzFiN2IzNjYxNGU=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
MDc4MWM0ZDUwMjliOWU4N2MxMDYyODI5YjI1YWU1OGZlYWI0ODEwNjdlMWU3
|
14
|
+
ZTBlZDFmYzNmNDdhOWU5YzU0OWFmYmI2ZTQyMWM4OTE1MWI0YTJiZDlmYzUw
|
15
|
+
Y2FkYTBjODA3ZTc0MDc3YzA5ZmE5NDhkZDFhNGE5MTc3MjQyYmE=
|
data/README.md
CHANGED
@@ -1,6 +1,8 @@
|
|
1
1
|
# PrimeSlidingMenu
|
2
2
|
|
3
|
-
ECSlidingViewController
|
3
|
+
[ECSlidingViewController](https://github.com/ECSlidingViewController/ECSlidingViewController) integration for [MotionPrime](https://github.com/droidlabs/motion-prime).
|
4
|
+
|
5
|
+

|
4
6
|
|
5
7
|
## Installation
|
6
8
|
|
@@ -11,10 +13,21 @@ Add this line to your application's Gemfile:
|
|
11
13
|
And then execute:
|
12
14
|
|
13
15
|
$ bundle
|
16
|
+
$ rake pod:install
|
17
|
+
|
18
|
+
## Usage
|
14
19
|
|
15
|
-
|
20
|
+
class AppDelegate < Prime::BaseAppDelegate
|
21
|
+
def on_load(app, options)
|
22
|
+
open_screen :main, sidebar: true
|
23
|
+
end
|
24
|
+
end
|
16
25
|
|
17
|
-
|
26
|
+
class SidebarScreen < Prime::Screen
|
27
|
+
def render
|
28
|
+
# Add anything to menu
|
29
|
+
end
|
30
|
+
end
|
18
31
|
|
19
32
|
|
20
33
|
## Contributing
|
@@ -7,7 +7,6 @@ module PrimeSlidingMenu
|
|
7
7
|
screen.on_create(options.merge(navigation: false)) if screen.respond_to?(:on_create)
|
8
8
|
screen.menu_controller = menu unless menu.nil?
|
9
9
|
screen.content_controller = content unless content.nil?
|
10
|
-
screen.content_controller.view.addGestureRecognizer screen.panGesture
|
11
10
|
screen.setAnchorRightRevealAmount 260.0
|
12
11
|
screen
|
13
12
|
end
|
@@ -37,6 +36,8 @@ module PrimeSlidingMenu
|
|
37
36
|
@content_controller_ref = prepare_controller(c)
|
38
37
|
if should_reinit_content?(@content_controller_ref)
|
39
38
|
self.topViewController = @content_controller_ref
|
39
|
+
@content_controller_ref.view.addGestureRecognizer self.panGesture
|
40
|
+
@content_controller_ref.view.addGestureRecognizer self.resetTapGesture
|
40
41
|
else
|
41
42
|
content_controller.viewControllers = [@content_controller_ref]
|
42
43
|
end
|