-
Notifications
You must be signed in to change notification settings - Fork 48
/
RxMKMapView.podspec
69 lines (56 loc) · 1.88 KB
/
RxMKMapView.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
63
64
65
66
67
68
69
#
# Be sure to run `pod lib lint RxMKMapView.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 = 'RxMKMapView'
s.version = '6.0.1'
s.summary = 'Reactive wrapper for MKMapView `delegate`'
s.description = <<-DESC
RxMKMapView is a Reactive wrapper for MKMapView `delegate`.
## Installation
RxMKMapView is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
```ruby
pod "RxMKMapView"
```
## Example Usages
```swift
// MARK: Setup MKMapView
let mapView = MKMapView(frame: view.frame)
view.addSubview(mapView)
// MARK: Bind Annotations
requestForAnnotations() // Observable<MKAnnotation>
.asDriver(onErrorJustReturn: [])
.drive(mapView.rx.annotations)
.disposed(by: disposeBag)
// MARK: Respond to Loading Events
mapView.rx.willStartLoadingMap
.asDriver()
.drive(onNext: {
print("map started loadedloading)
})
.disposed(by: disposeBag)
mapView.rx.didFinishLoadingMap
.asDriver()
.drive(onNext: {
print("map finished loading")
})
.disposed(by: disposeBag)
```
DESC
s.homepage = 'https://github.com/RxSwiftCommunity/RxMKMapView'
s.license = 'MIT'
s.author = { 'RxSwift Community' => '[email protected]' }
s.source = { :git => 'https://github.com/RxSwiftCommunity/RxMKMapView.git', :tag => s.version.to_s }
s.platform = :ios, '9.0'
s.requires_arc = true
s.source_files = 'Sources/**/*.swift'
s.dependency 'RxCocoa', '~> 6.0'
s.dependency 'RxSwift', '~> 6.0'
s.frameworks = 'Foundation', 'MapKit'
s.swift_version = '5.1'
end