ggould75 / LSTabs

LSTabs for iOS is a small collection of well-documented classes to create tinted buttons, compound buttons with a badge (tabs) or manage collections of tabs in horizontal or vertical layout
53 stars 26 forks source link

Cocopods #1

Open emailatravi opened 11 years ago

emailatravi commented 11 years ago

Hi

Can we have a cocoapods for the same.

skull-squadron commented 11 years ago

That would rock.

skull-squadron commented 11 years ago

LSTabs.podspec

Pod::Spec.new do |s|
  s.name         = "LSTabs"
  s.version      = "0.0.0"
  s.summary      = "LSTabs for iOS is a small collection of well-documented UI classes including tabs and tinted buttons"
  s.homepage     = "https://github.com/ggould75/LSTabs"
  s.license      = 'MIT'
  s.author       = { "Marco Mussini" => "" }
  s.source       = { :git => "https://github.com/ggould75/LSTabs.git" }
  s.platform     = :ios, '4.3'
  s.source_files = 'LSTabs/Library/**/*.{h,m}', 'LSTabs/Demos/Other helper classes/*.{h,m}', 'LSTabs/Demos/ObjectCollection.{h,m}', 'LSTabs/Demos/TabControls/*.{h,m}', 'LSTabs/Demos/TabViews/*.{h,m}'
  s.frameworks = 'Foundation', 'UIKit', 'CoreGraphics'
  s.requires_arc = false
end

To install LSTabs via testing podspec

1. Place the above here:

~/.cocoapods/repos/<yourname>/LSTabs/0.0.0/LSTabs.podspec

(Not youname != master, create the path if it doesn't exist.)

2. Add this to your Podfile:

pod 'LSTabs'

3. Run pod install

skull-squadron commented 11 years ago

Note: There are some good optional classes mixed in with the demos.