prime_sliding_menu 0.1.3 → 0.1.4

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
- ZTZjZWZhYWM1YjljZDExYmMyYTE1ODg2YjJkZjRiYWQ3OTM3NjgxYQ==
4
+ NGJmM2Y4ZTM2Zjg0MTgzYjkzZDkwZGY3MDU0NmMxYjZhYTU3ZWVkZg==
5
5
  data.tar.gz: !binary |-
6
- NzM1MDY2NzU2NTU5MDY2YzZlMzI2YzhmZTBiNzRjNDA5ODM4MmZlMQ==
6
+ ODUyMzE1NjBlNDRiNzJhNmJmZjAwYzk3YzQ3ZGRiMDkxNDJlYmE1Nw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- MjU2NDc0YjYzY2U5NWNlODliNWQ1MjM3OTJjYWMwZDdjYzI5NmNkNzBlYTlj
10
- YmQxOGYwODFhNWNhMWNiOTAxZDg1YTEzMTg0YTNlODM1NDUwZDkwNjM2MDY5
11
- NWViNWM4OWViOTJjOTBiY2ZhOGViOTJkODMzNGNkZjkyYWY0NzE=
9
+ ZTM2MWU5OWNkMTUyY2E2MzM3MTg4OWM3YzkwYmQ5MDVkYjY2NGQyOTAzMDNh
10
+ NWY1Y2JmMDQzOTAyYzEzNjdkY2MyOWFhZDNlODhjODg5MDNhZjM5ZmNiYmQ0
11
+ ODgyNGNlNTkwMTc5OGZhMDY4NDJiNDE3YmNmYzFiN2IzNjYxNGU=
12
12
  data.tar.gz: !binary |-
13
- MjhlYzliNjc2ZGY2OTA1ZjM5NDBjZTRhZTk2ZmU1ZDc2MGNiZTEwY2U4NDJk
14
- ODhhZGVhNjc1OTFjZDhiYzRkMGZiMzFlOTQ3YzkzZTdiNWUxNjMzM2Q4OWNk
15
- NGM5ZTVhNzI4YjQwZDdhOWMyZTI3YjhlZDkwODdhOTIyOGI0OGQ=
13
+ MDc4MWM0ZDUwMjliOWU4N2MxMDYyODI5YjI1YWU1OGZlYWI0ODEwNjdlMWU3
14
+ ZTBlZDFmYzNmNDdhOWU5YzU0OWFmYmI2ZTQyMWM4OTE1MWI0YTJiZDlmYzUw
15
+ Y2FkYTBjODA3ZTc0MDc3YzA5ZmE5NDhkZDFhNGE5MTc3MjQyYmE=
data/README.md CHANGED
@@ -1,6 +1,8 @@
1
1
  # PrimeSlidingMenu
2
2
 
3
- ECSlidingViewController 2 integration for MotionPrime.
3
+ [ECSlidingViewController](https://github.com/ECSlidingViewController/ECSlidingViewController) integration for [MotionPrime](https://github.com/droidlabs/motion-prime).
4
+
5
+ ![iPhone and iPad Mini screenshots](http://github.com/ECSlidingViewController/ECSlidingViewController/wiki/readme-assets/readme-hero.png)
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
- Or install it yourself as:
20
+ class AppDelegate < Prime::BaseAppDelegate
21
+ def on_load(app, options)
22
+ open_screen :main, sidebar: true
23
+ end
24
+ end
16
25
 
17
- $ gem install prime_sliding_menu
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
@@ -1,3 +1,3 @@
1
1
  module PrimeSlidingMenu
2
- VERSION = '0.1.3'
2
+ VERSION = '0.1.4'
3
3
  end
metadata CHANGED
@@ -1,7 +1,7 @@
1
1
  --- !ruby/object:Gem::Specification
2
2
  name: prime_sliding_menu
3
3
  version: !ruby/object:Gem::Version
4
- version: 0.1.3
4
+ version: 0.1.4
5
5
  platform: ruby
6
6
  authors:
7
7
  - Iskander Haziev