Skip to content

Commit

Permalink
rxswift 4.0
Browse files Browse the repository at this point in the history
  • Loading branch information
icanzilb committed Oct 28, 2017
1 parent 7f77476 commit 1e76e82
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 37 deletions.
2 changes: 1 addition & 1 deletion .swift-version
Original file line number Diff line number Diff line change
@@ -1 +1 @@
4.04.04.04.0
4.0
5 changes: 3 additions & 2 deletions Example/Podfile
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,8 @@ use_frameworks!

target 'RxAnimated_Example' do

pod 'RxSwift', '~> 4.0.0-beta.0'
pod 'RxCocoa', '~> 4.0.0-beta.0'
pod 'RxSwift', '~> 4.0.0'
pod 'RxCocoa', '~> 4.0.0'
pod 'RxAnimated', :path => '../'

end
2 changes: 1 addition & 1 deletion Example/RxAnimated/ViewController.swift
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ class ViewController: UIViewController {
@IBOutlet var leftConstraint: NSLayoutConstraint!
@IBOutlet var rightConstraint: NSLayoutConstraint!

private let timer = Observable<Int>.timer(0, period: 1, scheduler: MainScheduler.instance).shareReplay(1)
private let timer = Observable<Int>.timer(0, period: 1, scheduler: MainScheduler.instance).share(replay: 1)
private let bag = DisposeBag()

override func viewDidLoad() {
Expand Down
20 changes: 5 additions & 15 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,13 +1,10 @@
# [WIP] RxAnimated
# RxAnimated - animated bindings

[![CI Status](http://img.shields.io/travis/icanzilb/RxAnimated.svg?style=flat)](https://travis-ci.org/icanzilb/RxAnimated)
[![Version](https://img.shields.io/cocoapods/v/RxAnimated.svg?style=flat)](http://cocoapods.org/pods/RxAnimated)
[![License](https://img.shields.io/cocoapods/l/RxAnimated.svg?style=flat)](http://cocoapods.org/pods/RxAnimated)
[![Platform](https://img.shields.io/cocoapods/p/RxAnimated.svg?style=flat)](http://cocoapods.org/pods/RxAnimated)

> **NB:** This is a pre-release software, currently the lib works with Xcode9 GM and RxSwift4 beta.0.

**RxAnimated** provides animation interface to RxCocoa's bindings.

It comes with few predefined animation bindings, and provides a flexible mechanism for you to add your own predefined animations and use them when binding with RxCocoa.
Expand Down Expand Up @@ -145,29 +142,22 @@ textObservable

![](etc/custom-label-anim.gif)

The sky is the limit! (Or good taste ofc.)
The sky is the limit! (And good taste.)

## Example

The demo app shows few animations in action, download the repo and give it a try.

## Requirements

> !! RxSwift 4 beta.0
## Installation

RxAnimated is available through [CocoaPods](http://cocoapods.org). To install
it, simply add the following line to your Podfile:
RxAnimated depends on RxSwift 4+.

RxAnimated is available through [CocoaPods](http://cocoapods.org). To install it, simply add the following line to your Podfile:

```ruby
pod "RxAnimated"
```

## Author

Marin Todorov, https://github.com/icanzilb

## License

RxAnimated is available under the MIT license. See the LICENSE file for more info.
12 changes: 6 additions & 6 deletions RxAnimated.podspec
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
Pod::Spec.new do |s|
s.name = 'RxAnimated'
s.version = '0.1.0-beta.1'
s.version = '0.2.0'
s.summary = 'Animated bindings for RxSwift/RxCocoa'

s.description = <<-DESC
Expand All @@ -21,12 +21,12 @@ Pod::Spec.new do |s|
s.source_files = 'RxAnimated/Core/**/*'
end

s.subspec 'Markdown' do |cs|
#cs.source_files = 'RxAnimated/Animations/*'
end
# s.subspec 'Animations' do |cs|
# s.source_files = 'RxAnimated/Animations/*'
# end

s.frameworks = 'UIKit'
s.dependency 'RxSwift', '~> 4.0.0-beta.0'
s.dependency 'RxCocoa', '~> 4.0.0-beta.0'
s.dependency 'RxSwift', '~> 4.0.0'
s.dependency 'RxCocoa', '~> 4.0.0'

end
4 changes: 0 additions & 4 deletions RxAnimated/Core/RxAnimated+animations.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Marin Todorov, https://github.com/icanzilb
//

import RxSwift
import RxCocoa

Expand Down
4 changes: 0 additions & 4 deletions RxAnimated/Core/RxAnimated+bindings.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Marin Todorov, https://github.com/icanzilb
//

import RxSwift
import RxCocoa

Expand Down
4 changes: 0 additions & 4 deletions RxAnimated/Core/RxAnimated.swift
Original file line number Diff line number Diff line change
@@ -1,7 +1,3 @@
//
// Marin Todorov, https://github.com/icanzilb
//

import RxSwift
import RxCocoa

Expand Down

0 comments on commit 1e76e82

Please sign in to comment.