forked from RxSwiftCommunity/RxSegue
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathRxSegue.podspec
62 lines (55 loc) · 2.2 KB
/
RxSegue.podspec
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
#
# Be sure to run `pod lib lint RxSegue.podspec' to ensure this is a
# valid spec before submitting.
#
# Any lines starting with a # are optional, but their use is encouraged
# To learn more about a Podspec see http://guides.cocoapods.org/syntax/podspec.html
#
Pod::Spec.new do |s|
s.name = "RxSegue"
s.version = "1.0.0.beta.1"
s.summary = "Reactive generic segue"
# This description is used to generate tags and improve search results.
# * Think: What does it do? Why did you write it? What is the focus?
# * Try to keep it short, snappy and to the point.
# * Write the description between the DESC delimiters below.
# * Finally, don't worry about the indent, CocoaPods strips it!
s.description = <<-DESC
Reactive generic segue.
Implemented with RxSwift.
Abstracts navigation logic
```swift
var profileSegue: NavigationSegue<UINavigationController,
ProfileViewController,
ProfileViewModel> {
return NavigationSegue(fromViewController: self.navigationController!,
toViewControllerFactory: { (sender, context) -> ProfileViewController in
let profileViewController: ProfileViewController = ...
profileViewController.profileViewModel = context
return profileViewController
})
}
//----------
pushButton.rx_tap
.map {
return ProfileViewModel(name: "John Doe",
email: "JohnDoe@example.com",
avatar: UIImage(named: "avatar"))
}
.bindTo(profileSegue)
.addDisposableTo(disposeBag)
```
DESC
s.homepage = "https://github.com/RxSwiftCommunity/RxSegue.git"
s.license = 'MIT'
s.author = { "sergdort" => "sergdort@gmail.com" }
s.source = {
:git => "https://github.com/RxSwiftCommunity/RxSegue.git",
:tag => s.version.to_s
}
s.social_media_url = 'https://twitter.com/SergDort'
s.platform = :ios, '8.0'
s.requires_arc = true
s.source_files = 'Pod/Classes/**/*'
s.dependency 'RxSwift', '3.0.0-beta.2'
end