prime_sliding_menu 0.1.1 → 0.1.2

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
- YjQ1NWFlYmU0OTM1ZWI3Yzc0YzBlZmIwNmI5NTZkZGMzMzg1ZjAyNQ==
4
+ MTlmZTZiMmYwMzEzZjI5Yjc0YzZjNzBiYTJlZDFkODg0MDcwZjBiMQ==
5
5
  data.tar.gz: !binary |-
6
- YmQyZGQwMTgxYjQ2YzE4ODhhZWUwNTgwNjg2NWU0NTlhYmJjZDA3MA==
6
+ NzE4NTg3ZmEwZWI0MmI4ODA5Y2U5MTVjODZjYjM3YzMyMmRkNjk4Nw==
7
7
  !binary "U0hBNTEy":
8
8
  metadata.gz: !binary |-
9
- NTgxNzlmMWYzYjBhNGFmNzY2MGI2ZmM4ODFmMWJmNjJjNGZmY2M1ZDk5ZjY5
10
- YjQ2MzAwY2E3OTY5NDBiMTcxYWJjYjc5OWNkM2E1YzI3YjdhZGYwODg2YTM5
11
- NDlmNmRhMjAyZTBkMzkzOWZjZWZkZTA0ZWJmMmM4ZGVlY2U0ZjE=
9
+ ODE3MjM1ZjU5Y2Y0NjI4MTQ5NjEyNTVjZmQ3ZjEwZjdhN2QxZjZhOTY4NWQw
10
+ YTVhMGE3NzM4ZDc1ZmRjZmI1NGNiY2YwMTZiODk1MjgxZmJkYTNkNTdmNjRh
11
+ YzcwYTIzNGRhN2E3OTAwZWMwOTc0NGIyYjNlYWZmZDFjYjZkYWY=
12
12
  data.tar.gz: !binary |-
13
- YjE1YzhmZGM5MDQxNjI5Y2NmZmIyZjY0MjQzODBlNGJjOGQ1ZDZmOTI3MDlh
14
- ZGY3YTMwNzg5NDViOTk4YmQxNzFkOWQ1OTVhMTdmNzdjNjk2ODAxYmVkMWFl
15
- NzgwYzNlMDQwOTdkOWFmNmJhMjI1YThjZDE2ZTRmOTQxYzg3NDg=
13
+ ZTMxZWNiN2M5ZWRjOGE5NmRkNjYzZDMzNzFhYTkyZmZmYzE1NDgwN2QxZjc3
14
+ ODk4MWFjNTgzNzMxYmVkMWQ0YjU1ZmU2MGZhZGI0YzNiMzc2OGE5Y2JlM2My
15
+ NDI2N2E0MDU4MWRhNjgwYzU2N2Q3NzBkYTViM2U2NTMwZWQxMzI=
@@ -18,7 +18,15 @@ module PrimeSlidingMenu
18
18
  alias_method :open_content_screen!, :open_content_screen
19
19
  def open_content_screen(screen, options = {})
20
20
  if sidebar?
21
- @sidebar_container.content_controller = screen
21
+ if options[:animated]
22
+ UIView.transitionWithView @sidebar_container,
23
+ duration: 0.5,
24
+ options: UIViewAnimationOptionTransitionFlipFromLeft,
25
+ animations: proc { @sidebar_container.content_controller = screen },
26
+ completion: nil
27
+ else
28
+ @sidebar_container.content_controller = screen
29
+ end
22
30
  else
23
31
  open_content_screen!(screen)
24
32
  end
@@ -1,3 +1,3 @@
1
1
  module PrimeSlidingMenu
2
- VERSION = '0.1.1'
2
+ VERSION = '0.1.2'
3
3
  end
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.1
4
+ version: 0.1.2
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-01-18 00:00:00.000000000 Z
11
+ date: 2014-01-26 00:00:00.000000000 Z
12
12
  dependencies:
13
13
  - !ruby/object:Gem::Dependency
14
14
  name: cocoapods