Skip to content

Commit 8784b0a

Browse files
committed
add cocoapods support
1 parent d76fe46 commit 8784b0a

2 files changed

Lines changed: 18 additions & 2 deletions

File tree

README.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -95,13 +95,15 @@ Then run `carthage update`.
9595

9696
#### Cocoapods
9797

98+
**NOTE:** Cocoapods does not officially support Swift projects yet. Make sure you have Cocoapods 0.36 beta installed by running `gem install cocoapods --pre`.
99+
98100
Add the following line to your Podfile.
99101

100102
```
101-
pod "StatefulViewController", "~> 0.1"
103+
pod "StatefulViewController", :git => "https://github.com/aschuch/StatefulViewController"
102104
```
103105

104-
Then run `pod install`.
106+
Then run `pod install` with Cocoapods 0.36 or newer.
105107

106108
#### Manually
107109

StatefulViewController.podspec

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
Pod::Spec.new do |s|
2+
s.name = "StatefulViewController"
3+
s.version = "0.1"
4+
s.summary = "Placeholder views based on content, loading, error or empty states"
5+
s.description = "A view controller subclass that presents placeholder views based on content, loading, error or empty states."
6+
s.homepage = "https://github.com/aschuch/StatefulViewController"
7+
s.license = { :type => "MIT", :file => "LICENSE" }
8+
s.author = { "Alexander Schuch" => "alexander@schuch.me" }
9+
s.social_media_url = "http://twitter.com/schuchalexander"
10+
s.platform = :ios, "8.0"
11+
s.source = { :git => "https://github.com/aschuch/StatefulViewController.git", :tag => s.version }
12+
s.requires_arc = true
13+
s.source_files = "StatefulViewController/StatefulViewController.swift", "StatefulViewController/ViewStateMachine.swift"
14+
end

0 commit comments

Comments
 (0)