Skip to content

Commit

Permalink
[ADD] .podspec
Browse files Browse the repository at this point in the history
  • Loading branch information
micazeve committed Sep 16, 2015
1 parent 8814209 commit 3f6e598
Show file tree
Hide file tree
Showing 2 changed files with 29 additions and 2 deletions.
23 changes: 23 additions & 0 deletions MAGearRefreshControl.podspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
Pod::Spec.new do |s|
s.name = "MAGearRefreshControl"
s.version = "0.1"
s.summary = "Refresh control with gear animation."

s.description = <<-DESC
MAGearRefreshControl is a fully customizable iOS refresh control with gear animation for tableview refresh, writen in Swift.
DESC
s.homepage = "https://github.com/micazeve/MAGearRefreshControl"

s.license = { :type => "MIT", :file => "LICENSE.txt" }
s.author = { "Michaël Azevedo" => "[email protected]" }
s.social_media_url = "https://twitter.com/micazeve"
s.platforms = { :ios => "8.0" }

s.source = { :git => "https://github.com/micazeve/MAGearRefreshControl.git", :branch => "master", :tag => '0.1'}
s.source_files = "Classes/**/*.swift"

s.ios.deployment_target = '8.0'

s.framework = "Foundation"
s.requires_arc = true
end
8 changes: 6 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,8 @@
# README
[![Version](https://img.shields.io/cocoapods/v/MAGearRefreshControl.svg?)](http://cocoapods.org/pods/MAGearRefreshControl)
[![License](https://img.shields.io/cocoapods/l/MAGearRefreshControl.svg)](http://cocoapods.org/pods/MAGearRefreshControl)
[![Platform](https://img.shields.io/cocoapods/p/MAGearRefreshControl.svg)](http://cocoapods.org/pods/MAGearRefreshControl)

MAGearRefreshControl is a fully customizable iOS refresh control with gear animation for tableview refresh, writen in Swift.

![MAGearRefreshControl](Screenshots/Anim.gif "MAGearRefreshControl")
Expand All @@ -17,7 +21,7 @@ The main structure of the refresh Control is based on [EGOTableViewPullRefresh](
##**How to use:**

###Contents:###
MAGearRefreshControl is made of four base classes you can use as you wish :
MAGearRefreshControl is made of five base classes you can use as you wish :

* **MAGear** : This class represents a gear in the most abstract way, without any graphical code related.
* **MASingleGearView** : This `UIView` subclass is used to draw a gear.
Expand All @@ -27,7 +31,7 @@ MAGearRefreshControl is made of four base classes you can use as you wish :

###Refresh control###

`MAGearRefreshControl` must be used from an `UITableViewController` subclass or `UIViewController` subclass.
`MAGearRefreshControl` must be used from an `UITableViewController` subclass or `UIViewController` subclass with an `UITableView`. Examples are provided for both cases.


refreshControl = MAGearRefreshControl(frame: CGRectMake(0, -self.tableView.bounds.height, self.view.frame.width, self.tableView.bounds.height))
Expand Down

0 comments on commit 3f6e598

Please sign in to comment.