vmodena / ICSDrawerController

ICSDrawerController is a left-side drawer controller for iPhone (iOS 7 or later).
MIT License
253 stars 73 forks source link

Request: Cocoapods? #2

Open BobDG opened 10 years ago

BobDG commented 10 years ago

Cocoapods are awesome, it would be nice if this framework could be found there as well! :)

vmodena commented 10 years ago

I'll think about it :)

sstadelman commented 10 years ago

I wrote up a pod spec that I use with my internal pod repository. You could quite easily follow these steps to pull to the public cocoa pods repository:

1) change s.name to ICSDrawerController 2) update your author info (if you want) 3) create a release (0.1, or other) in the repository. Change the :commit => "112f11a77d" to :tag => "<my tag name>" on the s.source line, and probably change s.version to match. 4) optionally, add "UIKit" to the list of s.frameworks (and uncomment)

Pod::Spec.new do |s|

  s.name         = "my-ICSDrawerController"
  s.version      = "0.1"
  s.summary      = "ICSDrawerController is a left-side drawer controller for iPhone (iOS 7 or later)."

  s.description  = <<-DESC
                   ICSDrawerController is a left-side drawer controller for iPhone (iOS 7 or later). 

                   It has all the features you'd expect from a side drawer controller, plus it's small, easy to read and tailor to your needs.

                   The controller is designed as a container controller and accepts two child controllers: the left and the center view controllers. The left view controller is intended as a master view controller: it is visible only when the drawer is open and, typically, talks to the drawer in order to update/replace the center view controller. The center view controller is intended as a detail view controller: it is visible when the drawer is closed and typically sends the `open` message to the drawer to reveal the left side controller.
                   DESC

  s.homepage     = "https://github.com/icecreamstudios/ICSDrawerController"
  s.screenshots  = "http://icecreamstudios.com/opensource/colors-demo.gif"

  s.license      = "MIT"
  s.license      = { :type => "MIT", :file => "LICENSE" }

  s.authors      = { "vmodena" => "opensource@icecreamstudios.com", "lrossi" => "opensource@icecreamstudios.com"}
  s.platform     = :ios, "7.0"
  s.source       = { :git => "https://github.com/icecreamstudios/ICSDrawerController.git", :commit => "112f11a77d"}

  s.source_files  = "ICSDrawerController/**/*.{h,m}"

  # s.frameworks = "SomeFramework", "AnotherFramework"

  s.requires_arc = true

end

Cool project!!/Stan