Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Streams of values over time

License

NotificationsYou must be signed in to change notification settings

ReactiveCocoa/ReactiveSwift

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ReactiveSwift

Streams of values over time. Tailored for Swift.

Latest ReactiveSwift DocumentationJoin the ReactiveSwift Slack community.


Carthage compatibleCocoaPods compatibleSwiftPM compatibleGitHub releaseSwift 5.1platforms

🚄Release Roadmap

Getting Started

Learn about theCore Reactive Primitives in ReactiveSwift, andBasic Operators available offered by these primitives.

Extended modules

ModuleRepositoryDescription
ReactiveCocoaReactiveCocoa/ReactiveCocoa

Extend Cocoa frameworks and Objective-C runtime APIs with ReactiveSwift bindings and extensions.

LoopReactiveCocoa/Loop

Composable unidirectional data flow with ReactiveSwift.

ReactiveSwift Composable Architecturetrading-point/reactiveswift-composable-architecture

ThePointfree Composable Architecture using ReactiveSwift instead of Combine.

What is ReactiveSwift in a nutshell?

ReactiveSwift offers composable, declarative and flexible primitives that are built around the grand concept ofstreams of values over time.

These primitives can be used to uniformly represent common Cocoa and generic programming patterns that are fundamentally an act of observation, e.g. delegate pattern, callback closures, notifications, control actions, responder chain events,futures/promises andkey-value observing (KVO).

Because all of these different mechanisms can be represented in thesame way,it’s easy to declaratively compose them together, with less spaghetticode and state to bridge the gap.

References

  1. API Reference

  2. API Contracts

    Contracts of the ReactiveSwift primitives, Best Practices with ReactiveSwift, and Guidelines on implementing custom operators.

  3. Debugging Techniques

  4. RxSwift Migration Cheatsheet

Installation

ReactiveSwift supports macOS 10.13+, iOS 11.0+, watchOS 4.0+, tvOS 11.0+ and Linux.

Carthage

If you useCarthage to manage your dependencies, simply addReactiveSwift to yourCartfile:

github "ReactiveCocoa/ReactiveSwift" ~> 6.1

If you use Carthage to build your dependencies, make sure you have addedReactiveSwift.framework to the "Linked Frameworks and Libraries" section of your target, and have included them in your Carthage framework copying build phase.

CocoaPods

If you useCocoaPods to manage your dependencies, simply addReactiveSwift to yourPodfile:

pod 'ReactiveSwift', '~> 6.1'

Swift Package Manager

If you use Swift Package Manager, simply add ReactiveSwift as a dependencyof your package inPackage.swift:

.package(url: "https://github.com/ReactiveCocoa/ReactiveSwift.git", from: "6.1.0")

Git submodule

  1. Add the ReactiveSwift repository as asubmodule of yourapplication’s repository.
  2. Rungit submodule update --init --recursive from within the ReactiveCocoa folder.
  3. Drag and dropReactiveSwift.xcodeproj into your application’s Xcodeproject or workspace.
  4. On the “General” tab of your application target’s settings, addReactiveSwift.framework to the “Embedded Binaries” section.
  5. If your application target does not contain Swift code at all, you should alsoset theEMBEDDED_CONTENT_CONTAINS_SWIFT build setting to “Yes”.

Playground

We also provide a Playground, so you can get used to ReactiveCocoa's operators. In order to start using it:

  1. Clone the ReactiveSwift repository.
  2. Retrieve the project dependencies using one of the following terminal commands from the ReactiveSwift project root directory:
    • git submodule update --init --recursiveOR, if you haveCarthage installed
    • carthage checkout
  3. OpenReactiveSwift.xcworkspace
  4. BuildReactiveSwift-macOS scheme
  5. Finally open theReactiveSwift.playground
  6. ChooseView > Show Debug Area

Have a question?

If you need any help, please visit ourGitHub issues orStack Overflow. Feel free to file an issue if you do not manage to find any solution from the archives.

Release Roadmap

Current Stable Release:
GitHub release

Plan of Record

ABI stability release

ReactiveSwift has no plan to declare ABI and module stability at the moment. It will continue to be offered as a source only dependency for the foreseeable future.

About

Streams of values over time

Topics

Resources

License

Contributing

Stars

Watchers

Forks

Packages

No packages published

Contributors93

Languages


[8]ページ先頭

©2009-2025 Movatter.jp