Skip to content

Commit 41d4d94

Browse files
Matteo TagliaficoMatteo Tagliafico
Matteo Tagliafico
authored and
Matteo Tagliafico
committed
Added Cocoapods support
1 parent 2eaa186 commit 41d4d94

File tree

4 files changed

+52
-2
lines changed

4 files changed

+52
-2
lines changed

ElasticTransition/ElasticTransition.m

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ -(void)overlayTapped:(UITapGestureRecognizer*)tapGR{
266266

267267
if (vc){
268268

269-
BOOL touchToDismiss;
269+
BOOL touchToDismiss = false;
270270

271271
if ([[vc class] conformsToProtocol:@protocol(ElasticMenuTransitionDelegate)]) {
272272

ElasticTransitionObjC.podspec

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Pod::Spec.new do |s|
2+
s.name = "ElasticTransitionObjC"
3+
s.version = "0.1"
4+
s.summary = "A UIKit custom transition that simulates an elastic drag."
5+
s.description = <<-DESC
6+
This is the Objective-C Version of Elastic Transition written in Swift by lkzhao.
7+
DESC
8+
9+
s.homepage = "https://github.com/taglia3/ElasticTransition-ObjC"
10+
s.license = 'MIT'
11+
s.author = { "taglia3" => "[email protected]" }
12+
s.source = { :git => "https://github.com/taglia3/ElasticTransition-ObjC.git", :tag => "0.1" }
13+
s.social_media_url = 'https://twitter.com/taglia3'
14+
15+
s.ios.deployment_target = '8.0'
16+
17+
s.source_files = 'ElasticTransition/**/*'
18+
s.frameworks = 'UIKit'
19+
end

LICENSE

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2016 taglia3 <[email protected]>
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

Readme.md

+13-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,15 @@ A UIKit custom modal transition that simulates an elastic drag. Written in Objec
55

66
![demo](https://github.com/lkzhao/ElasticTransition/blob/master/imgs/demo.gif?raw=true)
77

8+
## Installation
9+
10+
ElasticTransitionObjC is available through [CocoaPods](http://cocoapods.org). To install
11+
it, simply add the following line to your Podfile:
12+
13+
```ruby
14+
pod "ElasticTransitionObjC"
15+
```
16+
817
## Usage
918

1019
First of all, in your view controller, create an instance of ElasticTransition
@@ -141,8 +150,11 @@ Then implement your gesture handler and fo the following:
141150
}
142151
```
143152

153+
## Authors
154+
155+
lkzhao, taglia3, [email protected]
144156

145157
## License
146158

147-
ElasticTransition-ObjC is available under the MIT license. See the LICENSE file for more info.
159+
ElasticTransition is available under the MIT license. See the LICENSE file for more info.
148160

0 commit comments

Comments
 (0)