├── Cartfile ├── Cartfile.resolved ├── Carthage ├── Build │ └── Mac │ │ ├── RxBlocking.framework.dSYM │ │ └── Contents │ │ │ ├── Info.plist │ │ │ └── Resources │ │ │ └── DWARF │ │ │ └── RxBlocking │ │ ├── RxBlocking.framework │ │ ├── Headers │ │ ├── Modules │ │ ├── Resources │ │ ├── RxBlocking │ │ └── Versions │ │ │ ├── A │ │ │ ├── Headers │ │ │ │ └── RxBlocking-Swift.h │ │ │ ├── Modules │ │ │ │ ├── RxBlocking.swiftmodule │ │ │ │ │ ├── x86_64.swiftdoc │ │ │ │ │ └── x86_64.swiftmodule │ │ │ │ └── module.modulemap │ │ │ ├── Resources │ │ │ │ └── Info.plist │ │ │ └── RxBlocking │ │ │ └── Current │ │ ├── RxCocoa.framework.dSYM │ │ └── Contents │ │ │ ├── Info.plist │ │ │ └── Resources │ │ │ └── DWARF │ │ │ └── RxCocoa │ │ ├── RxCocoa.framework │ │ ├── Headers │ │ ├── Modules │ │ ├── Resources │ │ ├── RxCocoa │ │ └── Versions │ │ │ ├── A │ │ │ ├── Headers │ │ │ │ ├── RxCocoa-Swift.h │ │ │ │ ├── RxCocoa.h │ │ │ │ ├── _RX.h │ │ │ │ ├── _RXDelegateProxy.h │ │ │ │ ├── _RXKVOObserver.h │ │ │ │ └── _RXObjCRuntime.h │ │ │ ├── Modules │ │ │ │ ├── RxCocoa.swiftmodule │ │ │ │ │ ├── x86_64.swiftdoc │ │ │ │ │ └── x86_64.swiftmodule │ │ │ │ └── module.modulemap │ │ │ ├── Resources │ │ │ │ ├── Info.plist │ │ │ │ └── SharedSequence+Operators+arity.tt │ │ │ └── RxCocoa │ │ │ └── Current │ │ ├── RxSwift.framework.dSYM │ │ └── Contents │ │ │ ├── Info.plist │ │ │ └── Resources │ │ │ └── DWARF │ │ │ └── RxSwift │ │ ├── RxSwift.framework │ │ ├── Headers │ │ ├── Modules │ │ ├── Resources │ │ ├── RxSwift │ │ └── Versions │ │ │ ├── A │ │ │ ├── Headers │ │ │ │ └── RxSwift-Swift.h │ │ │ ├── Modules │ │ │ │ ├── RxSwift.swiftmodule │ │ │ │ │ ├── x86_64.swiftdoc │ │ │ │ │ └── x86_64.swiftmodule │ │ │ │ └── module.modulemap │ │ │ ├── Resources │ │ │ │ └── Info.plist │ │ │ └── RxSwift │ │ │ └── Current │ │ ├── RxTests.framework.dSYM │ │ └── Contents │ │ │ ├── Info.plist │ │ │ └── Resources │ │ │ └── DWARF │ │ │ └── RxTests │ │ └── RxTests.framework │ │ ├── Headers │ │ ├── Modules │ │ ├── Resources │ │ ├── RxTests │ │ └── Versions │ │ ├── A │ │ ├── Headers │ │ │ └── RxTests-Swift.h │ │ ├── Modules │ │ │ ├── RxTests.swiftmodule │ │ │ │ ├── x86_64.swiftdoc │ │ │ │ └── x86_64.swiftmodule │ │ │ └── module.modulemap │ │ ├── Resources │ │ │ └── Info.plist │ │ └── RxTests │ │ └── Current └── Checkouts │ └── RxSwift │ ├── .gitignore │ ├── .jazzy.yml │ ├── .travis.yml │ ├── CHANGELOG.md │ ├── CODE_OF_CONDUCT.md │ ├── CONTRIBUTING.md │ ├── Dangerfile │ ├── Documentation │ ├── API.md │ ├── ComparisonWithOtherLibraries.md │ ├── DesignRationale.md │ ├── ExampleApp.md │ ├── Examples.md │ ├── GettingStarted.md │ ├── HotAndColdObservables.md │ ├── Linux.md │ ├── MathBehindRx.md │ ├── Migration.md │ ├── NewFeatureRequestTemplate.md │ ├── Playgrounds.md │ ├── Schedulers.md │ ├── Subjects.md │ ├── Tips.md │ ├── UnitTests.md │ ├── Units.md │ ├── Warnings.md │ └── Why.md │ ├── Gemfile │ ├── Gemfile.lock │ ├── ISSUE_TEMPLATE.md │ ├── LICENSE.md │ ├── Package.swift │ ├── Preprocessor │ ├── Preprocessor.xcodeproj │ │ ├── project.pbxproj │ │ └── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ ├── Preprocessor │ │ └── main.swift │ └── README.md │ ├── README.md │ ├── Rx.playground │ ├── Pages │ │ ├── Combining_Operators.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Connectable_Operators.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Creating_and_Subscribing_to_Observables.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Debugging_Operators.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Enable_RxSwift.resourceCount.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Error_Handling_Operators.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Filtering_and_Conditional_Operators.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Introduction.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Mathematical_and_Aggregate_Operators.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Table_of_Contents.xcplaygroundpage │ │ │ └── Contents.swift │ │ ├── Transforming_Operators.xcplaygroundpage │ │ │ └── Contents.swift │ │ └── Working_with_Subjects.xcplaygroundpage │ │ │ └── Contents.swift │ ├── Sources │ │ └── SupportCode.swift │ ├── SupportCode.remap │ ├── contents.xcplayground │ └── playground.xcworkspace │ │ └── contents.xcworkspacedata │ ├── Rx.xcodeproj │ ├── project.pbxproj │ ├── project.xcworkspace │ │ └── contents.xcworkspacedata │ └── xcshareddata │ │ └── xcschemes │ │ ├── RxBlocking-OSX.xcscheme │ │ ├── RxBlocking-iOS.xcscheme │ │ ├── RxBlocking-tvOS.xcscheme │ │ ├── RxBlocking-watchOS.xcscheme │ │ ├── RxCocoa-OSX.xcscheme │ │ ├── RxCocoa-iOS.xcscheme │ │ ├── RxCocoa-tvOS.xcscheme │ │ ├── RxCocoa-watchOS.xcscheme │ │ ├── RxSwift-OSX.xcscheme │ │ ├── RxSwift-iOS.xcscheme │ │ ├── RxSwift-tvOS.xcscheme │ │ ├── RxSwift-watchOS.xcscheme │ │ ├── RxTests-OSX.xcscheme │ │ ├── RxTests-iOS.xcscheme │ │ └── RxTests-tvOS.xcscheme │ ├── Rx.xcworkspace │ └── contents.xcworkspacedata │ ├── RxBlocking.podspec │ ├── RxBlocking │ ├── BlockingObservable+Operators.swift │ ├── BlockingObservable.swift │ ├── Info.plist │ ├── ObservableConvertibleType+Blocking.swift │ ├── README.md │ └── RunLoopLock.swift │ ├── RxCocoa.podspec │ ├── RxCocoa │ ├── Common │ │ ├── CocoaUnits │ │ │ ├── ControlEvent.swift │ │ │ ├── ControlProperty.swift │ │ │ ├── Driver │ │ │ │ ├── ControlEvent+Driver.swift │ │ │ │ ├── ControlProperty+Driver.swift │ │ │ │ ├── Driver+Subscription.swift │ │ │ │ ├── Driver.swift │ │ │ │ ├── ObservableConvertibleType+Driver.swift │ │ │ │ └── Variable+Driver.swift │ │ │ ├── SharedSequence │ │ │ │ ├── ObservableConvertibleType+SharedSequence.swift │ │ │ │ ├── SharedSequence+Operators+arity.swift │ │ │ │ ├── SharedSequence+Operators+arity.tt │ │ │ │ ├── SharedSequence+Operators.swift │ │ │ │ ├── SharedSequence.swift │ │ │ │ └── Variable+SharedSequence.swift │ │ │ └── UIBindingObserver.swift │ │ ├── DelegateProxy.swift │ │ ├── DelegateProxyType.swift │ │ ├── KVORepresentable+CoreGraphics.swift │ │ ├── KVORepresentable+Swift.swift │ │ ├── KVORepresentable.swift │ │ ├── Logging.swift │ │ ├── NSLayoutConstraint+Rx.swift │ │ ├── Observable+Bind.swift │ │ ├── Observables │ │ │ ├── Implementations │ │ │ │ └── ControlTarget.swift │ │ │ ├── NSNotificationCenter+Rx.swift │ │ │ ├── NSObject+Rx+KVORepresentable.swift │ │ │ ├── NSObject+Rx+RawRepresentable.swift │ │ │ ├── NSObject+Rx.swift │ │ │ └── NSURLSession+Rx.swift │ │ ├── RxCocoa.swift │ │ ├── RxTarget.swift │ │ ├── SectionedViewDataSourceType.swift │ │ ├── TextInput.swift │ │ ├── _RX.h │ │ ├── _RX.m │ │ ├── _RXDelegateProxy.h │ │ ├── _RXDelegateProxy.m │ │ ├── _RXKVOObserver.h │ │ ├── _RXKVOObserver.m │ │ ├── _RXObjCRuntime.h │ │ └── _RXObjCRuntime.m │ ├── Info.plist │ ├── OSX │ │ ├── NSButton+Rx.swift │ │ ├── NSControl+Rx.swift │ │ ├── NSImageView+Rx.swift │ │ ├── NSSlider+Rx.swift │ │ ├── NSTextField+Rx.swift │ │ └── NSView+Rx.swift │ ├── RxCocoa.h │ └── iOS │ │ ├── DataSources │ │ ├── RxCollectionViewReactiveArrayDataSource.swift │ │ └── RxTableViewReactiveArrayDataSource.swift │ │ ├── Events │ │ └── ItemEvents.swift │ │ ├── NSTextStorage+Rx.swift │ │ ├── Protocols │ │ ├── RxCollectionViewDataSourceType.swift │ │ └── RxTableViewDataSourceType.swift │ │ ├── Proxies │ │ ├── RxCollectionViewDataSourceProxy.swift │ │ ├── RxCollectionViewDelegateProxy.swift │ │ ├── RxPickerViewDelegateProxy.swift │ │ ├── RxScrollViewDelegateProxy.swift │ │ ├── RxSearchBarDelegateProxy.swift │ │ ├── RxSearchControllerDelegateProxy.swift │ │ ├── RxTabBarDelegateProxy.swift │ │ ├── RxTableViewDataSourceProxy.swift │ │ ├── RxTableViewDelegateProxy.swift │ │ ├── RxTextStorageDelegateProxy.swift │ │ └── RxTextViewDelegateProxy.swift │ │ ├── UIActivityIndicatorView+Rx.swift │ │ ├── UIAlertAction+Rx.swift │ │ ├── UIApplication+Rx.swift │ │ ├── UIBarButtonItem+Rx.swift │ │ ├── UIButton+Rx.swift │ │ ├── UICollectionView+Rx.swift │ │ ├── UIControl+Rx.swift │ │ ├── UIDatePicker+Rx.swift │ │ ├── UIGestureRecognizer+Rx.swift │ │ ├── UIImageView+Rx.swift │ │ ├── UILabel+Rx.swift │ │ ├── UINavigationItem+Rx.swift │ │ ├── UIPageControl+Rx.swift │ │ ├── UIPickerView+Rx.swift │ │ ├── UIProgressView+Rx.swift │ │ ├── UIRefreshControl+Rx.swift │ │ ├── UIScrollView+Rx.swift │ │ ├── UISearchBar+Rx.swift │ │ ├── UISearchController+Rx.swift │ │ ├── UISegmentedControl+Rx.swift │ │ ├── UISlider+Rx.swift │ │ ├── UIStepper+Rx.swift │ │ ├── UISwitch+Rx.swift │ │ ├── UITabBar+Rx.swift │ │ ├── UITabBarItem+Rx.swift │ │ ├── UITableView+Rx.swift │ │ ├── UITextField+Rx.swift │ │ ├── UITextView+Rx.swift │ │ ├── UIView+Rx.swift │ │ └── UIViewController+Rx.swift │ ├── RxExample │ ├── Extensions │ │ ├── CLLocationManager+Rx.swift │ │ ├── RxCLLocationManagerDelegateProxy.swift │ │ ├── RxImagePickerDelegateProxy.swift │ │ └── UIImagePickerController+Rx.swift │ ├── RxDataSources │ │ ├── DataSources+Rx │ │ │ ├── RxCollectionViewSectionedAnimatedDataSource.swift │ │ │ ├── RxCollectionViewSectionedReloadDataSource.swift │ │ │ ├── RxTableViewSectionedAnimatedDataSource.swift │ │ │ ├── RxTableViewSectionedReloadDataSource.swift │ │ │ └── UISectionedViewType+RxAnimatedDataSource.swift │ │ ├── DataSources │ │ │ ├── AnimatableSectionModel.swift │ │ │ ├── AnimatableSectionModelType+ItemPath.swift │ │ │ ├── AnimatableSectionModelType.swift │ │ │ ├── AnimationConfiguration.swift │ │ │ ├── Array+Extensions.swift │ │ │ ├── Changeset.swift │ │ │ ├── CollectionViewSectionedDataSource.swift │ │ │ ├── DataSources.swift │ │ │ ├── Differentiator.swift │ │ │ ├── FloatingPointType+IdentifiableType.swift │ │ │ ├── IdentifiableType.swift │ │ │ ├── IdentifiableValue.swift │ │ │ ├── IntegerType+IdentifiableType.swift │ │ │ ├── ItemPath.swift │ │ │ ├── Optional+Extensions.swift │ │ │ ├── SectionModel.swift │ │ │ ├── SectionModelType.swift │ │ │ ├── String+IdentifiableType.swift │ │ │ ├── TableViewSectionedDataSource.swift │ │ │ └── UI+SectionedViewType.swift │ │ └── README.md │ ├── RxExample-iOSTests │ │ ├── CLLocationManager+RxTests.swift │ │ ├── Info.plist │ │ ├── Mocks │ │ │ ├── MockGitHubAPI.swift │ │ │ ├── MockWireframe.swift │ │ │ ├── NotImplementedStubs.swift │ │ │ └── ValidationResult+Equatable.swift │ │ ├── RxExample_iOSTests.swift │ │ ├── RxTest.swift │ │ ├── TestScheduler+MarbleTests.swift │ │ └── UIImagePickerController+RxTests.swift │ ├── RxExample-iOSUITests │ │ ├── FlowTests.swift │ │ └── Info.plist │ ├── RxExample.xcodeproj │ │ ├── project.pbxproj │ │ ├── project.xcworkspace │ │ │ └── contents.xcworkspacedata │ │ └── xcshareddata │ │ │ └── xcschemes │ │ │ ├── RxExample-OSX.xcscheme │ │ │ ├── RxExample-iOS.xcscheme │ │ │ ├── RxExample-iOSTests.xcscheme │ │ │ └── RxExample-iOSUITests.xcscheme │ └── RxExample │ │ ├── Application+Extensions.swift │ │ ├── Example.swift │ │ ├── Examples │ │ ├── APIWrappers │ │ │ └── APIWrappersViewController.swift │ │ ├── Calculator │ │ │ ├── CalculatorAction.swift │ │ │ ├── CalculatorState.swift │ │ │ ├── CalculatorViewController.swift │ │ │ └── Operation.swift │ │ ├── Dependencies.swift │ │ ├── GeolocationExample │ │ │ └── GeolocationViewController.swift │ │ ├── GitHubSearchRepositories │ │ │ ├── GitHubSearchRepositoriesAPI.swift │ │ │ ├── GitHubSearchRepositoriesViewController.swift │ │ │ └── UINavigationController+Extensions.swift │ │ ├── GitHubSignup │ │ │ ├── BindingExtensions.swift │ │ │ ├── DefaultImplementations.swift │ │ │ ├── Protocols.swift │ │ │ ├── UsingDriver │ │ │ │ ├── GitHubSignupViewController2.swift │ │ │ │ └── GithubSignupViewModel2.swift │ │ │ └── UsingVanillaObservables │ │ │ │ ├── GitHubSignupViewController1.swift │ │ │ │ └── GithubSignupViewModel1.swift │ │ ├── ImagePicker │ │ │ ├── ImagePickerController.swift │ │ │ └── UIImagePickerController+RxCreate.swift │ │ ├── Numbers │ │ │ └── NumbersViewController.swift │ │ ├── OSX simple example │ │ │ └── IntroductionExampleViewController.swift │ │ ├── SimpleTableViewExample │ │ │ └── SimpleTableViewExampleViewController.swift │ │ ├── SimpleTableViewExampleSectioned │ │ │ └── SimpleTableViewExampleSectionedViewController.swift │ │ ├── SimpleValidation │ │ │ └── SimpleValidationViewController.swift │ │ ├── TableViewPartialUpdates │ │ │ ├── NumberCell.swift │ │ │ ├── NumberSectionView.swift │ │ │ └── PartialUpdatesViewController.swift │ │ ├── TableViewWithEditingCommands │ │ │ ├── DetailViewController.swift │ │ │ ├── RandomUserAPI.swift │ │ │ ├── TableViewWithEditingCommandsViewController.swift │ │ │ ├── UIImageView+Extensions.swift │ │ │ └── User.swift │ │ └── WikipediaImageSearch │ │ │ ├── ViewModels │ │ │ └── SearchResultViewModel.swift │ │ │ ├── Views │ │ │ ├── CollectionViewImageCell.swift │ │ │ ├── WikipediaImageCell.xib │ │ │ ├── WikipediaSearchCell.swift │ │ │ ├── WikipediaSearchCell.xib │ │ │ └── WikipediaSearchViewController.swift │ │ │ └── WikipediaAPI │ │ │ ├── WikipediaAPI.swift │ │ │ ├── WikipediaPage.swift │ │ │ └── WikipediaSearchResult.swift │ │ ├── Images.xcassets │ │ ├── AppIcon.appiconset │ │ │ ├── Contents.json │ │ │ ├── Icon-40.png │ │ │ ├── Icon-40@2x-1.png │ │ │ ├── Icon-40@2x.png │ │ │ ├── Icon-60@2x-1.png │ │ │ ├── Icon-60@2x.png │ │ │ ├── Icon-60@3x.png │ │ │ ├── Icon-76.png │ │ │ ├── Icon-76@2x.png │ │ │ ├── Icon-Small.png │ │ │ ├── Icon-Small@2x-1.png │ │ │ ├── Icon-Small@3x.png │ │ │ ├── Rx_Logo-iPad.png │ │ │ └── Rx_Logo_M.png │ │ └── ReactiveExtensionsLogo.imageset │ │ │ ├── Contents.json │ │ │ ├── ReactiveExtensionsLogo-2.png │ │ │ └── ReactiveExtensionsLogo.png │ │ ├── Info-OSX.plist │ │ ├── Info-iOS.plist │ │ ├── OSX │ │ ├── AppDelegate.swift │ │ └── Main.storyboard │ │ ├── Operators.swift │ │ ├── RxExample.xcdatamodeld │ │ ├── .xccurrentversion │ │ └── RxExample.xcdatamodel │ │ │ └── contents │ │ ├── Services │ │ ├── ActivityIndicator.swift │ │ ├── DownloadableImage.swift │ │ ├── GeolocationService.swift │ │ ├── HtmlParsing.swift │ │ ├── ImageService.swift │ │ ├── PseudoRandomGenerator.swift │ │ ├── Randomizer.swift │ │ ├── Reachability.swift │ │ ├── ReachabilityService.swift │ │ ├── UIImage+Extensions.swift │ │ ├── UIImageView+DownloadableImage.swift │ │ └── Wireframe.swift │ │ ├── String+URL.swift │ │ ├── ViewController.swift │ │ └── iOS │ │ ├── AppDelegate.swift │ │ ├── LaunchScreen.xib │ │ ├── Main.storyboard │ │ ├── RootViewController.swift │ │ └── UITableView+Extensions.swift │ ├── RxSwift.podspec │ ├── RxSwift │ ├── AnyObserver.swift │ ├── Cancelable.swift │ ├── Concurrency │ │ ├── AsyncLock.swift │ │ ├── Lock.swift │ │ ├── LockOwnerType.swift │ │ ├── SynchronizedDisposeType.swift │ │ ├── SynchronizedOnType.swift │ │ ├── SynchronizedSubscribeType.swift │ │ └── SynchronizedUnsubscribeType.swift │ ├── ConnectableObservableType.swift │ ├── DataStructures │ │ ├── Bag.swift │ │ ├── InfiniteSequence.swift │ │ ├── PriorityQueue.swift │ │ └── Queue.swift │ ├── Disposable.swift │ ├── Disposables │ │ ├── AnonymousDisposable.swift │ │ ├── BinaryDisposable.swift │ │ ├── BooleanDisposable.swift │ │ ├── CompositeDisposable.swift │ │ ├── Disposables.swift │ │ ├── DisposeBag.swift │ │ ├── DisposeBase.swift │ │ ├── NopDisposable.swift │ │ ├── RefCountDisposable.swift │ │ ├── ScheduledDisposable.swift │ │ ├── SerialDisposable.swift │ │ ├── SingleAssignmentDisposable.swift │ │ ├── StableCompositeDisposable.swift │ │ └── SubscriptionDisposable.swift │ ├── Errors.swift │ ├── Event.swift │ ├── Extensions │ │ └── String+Rx.swift │ ├── ImmediateSchedulerType.swift │ ├── Info.plist │ ├── Observable.swift │ ├── ObservableConvertibleType.swift │ ├── ObservableType+Extensions.swift │ ├── ObservableType.swift │ ├── Observables │ │ ├── Implementations │ │ │ ├── AddRef.swift │ │ │ ├── Amb.swift │ │ │ ├── AnonymousObservable.swift │ │ │ ├── Buffer.swift │ │ │ ├── Catch.swift │ │ │ ├── CombineLatest+CollectionType.swift │ │ │ ├── CombineLatest+arity.swift │ │ │ ├── CombineLatest+arity.tt │ │ │ ├── CombineLatest.swift │ │ │ ├── Concat.swift │ │ │ ├── ConnectableObservable.swift │ │ │ ├── Debug.swift │ │ │ ├── Debunce.swift │ │ │ ├── Deferred.swift │ │ │ ├── Delay.swift │ │ │ ├── DelaySubscription.swift │ │ │ ├── DistinctUntilChanged.swift │ │ │ ├── Do.swift │ │ │ ├── ElementAt.swift │ │ │ ├── Empty.swift │ │ │ ├── Error.swift │ │ │ ├── Filter.swift │ │ │ ├── Generate.swift │ │ │ ├── Just.swift │ │ │ ├── Map.swift │ │ │ ├── Merge.swift │ │ │ ├── Multicast.swift │ │ │ ├── Never.swift │ │ │ ├── ObserveOn.swift │ │ │ ├── ObserveOnSerialDispatchQueue.swift │ │ │ ├── Producer.swift │ │ │ ├── Range.swift │ │ │ ├── Reduce.swift │ │ │ ├── RefCount.swift │ │ │ ├── Repeat.swift │ │ │ ├── RetryWhen.swift │ │ │ ├── Sample.swift │ │ │ ├── Scan.swift │ │ │ ├── Sequence.swift │ │ │ ├── ShareReplay1.swift │ │ │ ├── ShareReplay1WhileConnected.swift │ │ │ ├── SingleAsync.swift │ │ │ ├── Sink.swift │ │ │ ├── Skip.swift │ │ │ ├── SkipUntil.swift │ │ │ ├── SkipWhile.swift │ │ │ ├── StartWith.swift │ │ │ ├── SubscribeOn.swift │ │ │ ├── Switch.swift │ │ │ ├── Take.swift │ │ │ ├── TakeLast.swift │ │ │ ├── TakeUntil.swift │ │ │ ├── TakeWhile.swift │ │ │ ├── Throttle.swift │ │ │ ├── Timeout.swift │ │ │ ├── Timer.swift │ │ │ ├── ToArray.swift │ │ │ ├── Using.swift │ │ │ ├── Window.swift │ │ │ ├── WithLatestFrom.swift │ │ │ ├── Zip+CollectionType.swift │ │ │ ├── Zip+arity.swift │ │ │ ├── Zip+arity.tt │ │ │ └── Zip.swift │ │ ├── Observable+Aggregate.swift │ │ ├── Observable+Binding.swift │ │ ├── Observable+Concurrency.swift │ │ ├── Observable+Creation.swift │ │ ├── Observable+Debug.swift │ │ ├── Observable+Multiple.swift │ │ ├── Observable+Single.swift │ │ ├── Observable+StandardSequenceOperators.swift │ │ └── Observable+Time.swift │ ├── ObserverType.swift │ ├── Observers │ │ ├── AnonymousObserver.swift │ │ ├── ObserverBase.swift │ │ └── TailRecursiveSink.swift │ ├── Platform │ │ ├── Platform.Darwin.swift │ │ └── Platform.Linux.swift │ ├── Reactive.swift │ ├── Rx.swift │ ├── RxMutableBox.swift │ ├── SchedulerType.swift │ ├── Schedulers │ │ ├── ConcurrentDispatchQueueScheduler.swift │ │ ├── ConcurrentMainScheduler.swift │ │ ├── CurrentThreadScheduler.swift │ │ ├── DispatchQueueSchedulerQOS.swift │ │ ├── HistoricalScheduler.swift │ │ ├── HistoricalSchedulerTimeConverter.swift │ │ ├── ImmediateScheduler.swift │ │ ├── Internal │ │ │ ├── AnonymousInvocable.swift │ │ │ ├── DispatchQueueConfiguration.swift │ │ │ ├── InvocableScheduledItem.swift │ │ │ ├── InvocableType.swift │ │ │ ├── ScheduledItem.swift │ │ │ └── ScheduledItemType.swift │ │ ├── MainScheduler.swift │ │ ├── OperationQueueScheduler.swift │ │ ├── RecursiveScheduler.swift │ │ ├── SchedulerServices+Emulation.swift │ │ ├── SerialDispatchQueueScheduler.swift │ │ ├── VirtualTimeConverterType.swift │ │ └── VirtualTimeScheduler.swift │ └── Subjects │ │ ├── BehaviorSubject.swift │ │ ├── PublishSubject.swift │ │ ├── ReplaySubject.swift │ │ ├── SubjectType.swift │ │ └── Variable.swift │ ├── RxTests.podspec │ ├── RxTests │ ├── Any+Equatable.swift │ ├── ColdObservable.swift │ ├── Event+Equatable.swift │ ├── HotObservable.swift │ ├── Info.plist │ ├── Recorded.swift │ ├── RxTests.swift │ ├── Schedulers │ │ ├── TestScheduler.swift │ │ └── TestSchedulerVirtualTimeConverter.swift │ ├── Subscription.swift │ ├── TestableObservable.swift │ ├── TestableObserver.swift │ └── XCTest+Rx.swift │ ├── Sources │ ├── AllTests │ │ ├── AnonymousObservable+Test.swift │ │ ├── AssumptionsTest.swift │ │ ├── BackgroundThreadPrimitiveHotObservable.swift │ │ ├── BagTest.swift │ │ ├── BehaviorSubjectTest.swift │ │ ├── CurrentThreadSchedulerTest.swift │ │ ├── DisposableTest.swift │ │ ├── ElementIndexPair.swift │ │ ├── EquatableArray.swift │ │ ├── Foundation+Extensions.swift │ │ ├── MainSchedulerTests.swift │ │ ├── MainThreadPrimitiveHotObservable.swift │ │ ├── MockDisposable.swift │ │ ├── MySubject.swift │ │ ├── Observable+AggregateTest.swift │ │ ├── Observable+BindingTest.swift │ │ ├── Observable+BlockingTest.swift │ │ ├── Observable+ConcurrencyTest.swift │ │ ├── Observable+CreationTest.swift │ │ ├── Observable+Extensions.swift │ │ ├── Observable+MultipleTest+CombineLatest.swift │ │ ├── Observable+MultipleTest+Zip.swift │ │ ├── Observable+MultipleTest.swift │ │ ├── Observable+SingleTest.swift │ │ ├── Observable+StandardSequenceOperatorsTest.swift │ │ ├── Observable+SubscriptionTest.swift │ │ ├── Observable+TimeTest.swift │ │ ├── Observable.Extensions.swift │ │ ├── ObserverTests.swift │ │ ├── PrimitiveHotObservable.swift │ │ ├── PrimitiveMockObserver.swift │ │ ├── PublishSubjectTest.swift │ │ ├── QueueTests.swift │ │ ├── Recorded+Timeless.swift │ │ ├── ReplaySubjectTest.swift │ │ ├── RxMutableBox.swift │ │ ├── RxTest.swift │ │ ├── SubjectConcurrencyTest.swift │ │ ├── TestConnectableObservable.swift │ │ ├── TestErrors.swift │ │ ├── TestVirtualScheduler.swift │ │ ├── VariableTest.swift │ │ ├── XCTest+AllTests.swift │ │ └── main.swift │ ├── RxBlocking │ │ ├── BlockingObservable+Operators.swift │ │ ├── BlockingObservable.swift │ │ ├── ObservableConvertibleType+Blocking.swift │ │ └── RunLoopLock.swift │ ├── RxCocoa │ │ └── RxCocoa.h │ ├── RxSwift │ │ ├── AddRef.swift │ │ ├── Amb.swift │ │ ├── AnonymousDisposable.swift │ │ ├── AnonymousInvocable.swift │ │ ├── AnonymousObservable.swift │ │ ├── AnonymousObserver.swift │ │ ├── AnyObserver.swift │ │ ├── AsyncLock.swift │ │ ├── Bag.swift │ │ ├── BehaviorSubject.swift │ │ ├── BinaryDisposable.swift │ │ ├── BooleanDisposable.swift │ │ ├── Buffer.swift │ │ ├── Cancelable.swift │ │ ├── Catch.swift │ │ ├── CombineLatest+CollectionType.swift │ │ ├── CombineLatest+arity.swift │ │ ├── CombineLatest.swift │ │ ├── CompositeDisposable.swift │ │ ├── Concat.swift │ │ ├── ConcurrentDispatchQueueScheduler.swift │ │ ├── ConcurrentMainScheduler.swift │ │ ├── ConnectableObservable.swift │ │ ├── ConnectableObservableType.swift │ │ ├── CurrentThreadScheduler.swift │ │ ├── Debug.swift │ │ ├── Deferred.swift │ │ ├── DelaySubscription.swift │ │ ├── DispatchQueueSchedulerQOS.swift │ │ ├── Disposable.swift │ │ ├── DisposeBag.swift │ │ ├── DisposeBase.swift │ │ ├── DistinctUntilChanged.swift │ │ ├── Do.swift │ │ ├── ElementAt.swift │ │ ├── Empty.swift │ │ ├── Error.swift │ │ ├── Errors.swift │ │ ├── Event.swift │ │ ├── Filter.swift │ │ ├── Generate.swift │ │ ├── HistoricalScheduler.swift │ │ ├── HistoricalSchedulerTimeConverter.swift │ │ ├── ImmediateScheduler.swift │ │ ├── ImmediateSchedulerType.swift │ │ ├── InfiniteSequence.swift │ │ ├── InvocableScheduledItem.swift │ │ ├── InvocableType.swift │ │ ├── Just.swift │ │ ├── Lock.swift │ │ ├── LockOwnerType.swift │ │ ├── MainScheduler.swift │ │ ├── Map.swift │ │ ├── Merge.swift │ │ ├── Multicast.swift │ │ ├── NAryDisposable.swift │ │ ├── Never.swift │ │ ├── NopDisposable.swift │ │ ├── Observable+Aggregate.swift │ │ ├── Observable+Binding.swift │ │ ├── Observable+Concurrency.swift │ │ ├── Observable+Creation.swift │ │ ├── Observable+Debug.swift │ │ ├── Observable+Extensions.swift │ │ ├── Observable+Multiple.swift │ │ ├── Observable+Single.swift │ │ ├── Observable+StandardSequenceOperators.swift │ │ ├── Observable+Time.swift │ │ ├── Observable.swift │ │ ├── ObservableConvertibleType.swift │ │ ├── ObservableType.swift │ │ ├── ObserveOn.swift │ │ ├── ObserveOnSerialDispatchQueue.swift │ │ ├── ObserverBase.swift │ │ ├── ObserverType.swift │ │ ├── OperationQueueScheduler.swift │ │ ├── Platform.Darwin.swift │ │ ├── Platform.Linux.swift │ │ ├── PriorityQueue.swift │ │ ├── Producer.swift │ │ ├── PublishSubject.swift │ │ ├── Queue.swift │ │ ├── Range.swift │ │ ├── RecursiveScheduler.swift │ │ ├── Reduce.swift │ │ ├── RefCount.swift │ │ ├── RefCountDisposable.swift │ │ ├── Repeat.swift │ │ ├── ReplaySubject.swift │ │ ├── RetryWhen.swift │ │ ├── Rx.swift │ │ ├── RxMutableBox.swift │ │ ├── Sample.swift │ │ ├── Scan.swift │ │ ├── ScheduledDisposable.swift │ │ ├── ScheduledItem.swift │ │ ├── ScheduledItemType.swift │ │ ├── SchedulerServices+Emulation.swift │ │ ├── SchedulerType.swift │ │ ├── Sequence.swift │ │ ├── SerialDispatchQueueScheduler.swift │ │ ├── SerialDisposable.swift │ │ ├── ShareReplay1.swift │ │ ├── ShareReplay1WhileConnected.swift │ │ ├── SingleAssignmentDisposable.swift │ │ ├── SingleAsync.swift │ │ ├── Sink.swift │ │ ├── Skip.swift │ │ ├── SkipUntil.swift │ │ ├── SkipWhile.swift │ │ ├── StableCompositeDisposable.swift │ │ ├── StartWith.swift │ │ ├── String+Rx.swift │ │ ├── SubjectType.swift │ │ ├── SubscribeOn.swift │ │ ├── SubscriptionDisposable.swift │ │ ├── Switch.swift │ │ ├── SynchronizedDisposeType.swift │ │ ├── SynchronizedOnType.swift │ │ ├── SynchronizedSubscribeType.swift │ │ ├── SynchronizedUnsubscribeType.swift │ │ ├── TailRecursiveSink.swift │ │ ├── Take.swift │ │ ├── TakeLast.swift │ │ ├── TakeUntil.swift │ │ ├── TakeWhile.swift │ │ ├── Throttle.swift │ │ ├── Timeout.swift │ │ ├── Timer.swift │ │ ├── ToArray.swift │ │ ├── Using.swift │ │ ├── Variable.swift │ │ ├── VirtualTimeConverterType.swift │ │ ├── VirtualTimeScheduler.swift │ │ ├── Window.swift │ │ ├── WithLatestFrom.swift │ │ ├── Zip+CollectionType.swift │ │ ├── Zip+arity.swift │ │ └── Zip.swift │ └── RxTests │ │ ├── Any+Equatable.swift │ │ ├── ColdObservable.swift │ │ ├── Event+Equatable.swift │ │ ├── HotObservable.swift │ │ ├── Recorded.swift │ │ ├── RxTests.swift │ │ ├── Subscription.swift │ │ ├── TestScheduler.swift │ │ ├── TestSchedulerVirtualTimeConverter.swift │ │ ├── TestableObservable.swift │ │ ├── TestableObserver.swift │ │ └── XCTest+Rx.swift │ ├── Tests │ ├── Foundation+Extensions.swift │ ├── Info.plist │ ├── MessageProcessingStage.swift │ ├── PerformanceTests │ │ ├── Info.plist │ │ ├── PerformanceTools.swift │ │ └── main.swift │ ├── Recorded+Timeless.swift │ ├── RxCocoaTests │ │ ├── Control+RxTests+Cocoa.swift │ │ ├── Control+RxTests+UIKit.swift │ │ ├── Control+RxTests.swift │ │ ├── ControlEventTests.swift │ │ ├── ControlPropertyTests.swift │ │ ├── DelegateProxyTest+Cocoa.swift │ │ ├── DelegateProxyTest+UIKit.swift │ │ ├── DelegateProxyTest.swift │ │ ├── Driver+Extensions.swift │ │ ├── Driver+Test.swift │ │ ├── KVOObservableTests.swift │ │ ├── NSControl+RxTests.swift │ │ ├── NSLayoutConstraint+RxTests.swift │ │ ├── NSNotificationCenterTests.swift │ │ ├── NSObject+RxTests.swift │ │ ├── NSView+RxTests.swift │ │ ├── RXObjCRuntime+Testing.h │ │ ├── RXObjCRuntime+Testing.m │ │ ├── RuntimeStateSnapshot.swift │ │ ├── RxObjCRuntimeState.swift │ │ ├── RxTest+Controls.swift │ │ ├── RxTests-OSX-Bridging-Header.h │ │ ├── RxTests-iOS-Bridging-Header.h │ │ ├── RxTests-tvOS-Bridging-Header.h │ │ ├── SentMessageTest.swift │ │ ├── TestImplementations │ │ │ └── SectionedViewDataSourceMock.swift │ │ ├── UIButton+RxTests.swift │ │ ├── UICollectionView+RxTests.swift │ │ ├── UINavigationItem+RxTests.swift.swift │ │ ├── UIPageControl+RxTest.swift │ │ ├── UIPickerView+RxTests.swift │ │ ├── UIRefreshControl+RxTests.swift │ │ ├── UIScrollView+RxTests.swift │ │ ├── UISearchBar+RxTests.swift │ │ ├── UISearchController+RxTests.swift │ │ ├── UITabBar+RxTests.swift │ │ ├── UITabBarItem+RxTests.swift │ │ ├── UITableView+RxTests.swift │ │ ├── UITextField+RxTests.swift │ │ ├── UITextView+RxTests.swift │ │ ├── UIView+RxTests.swift │ │ └── UIViewControler+RxTests.swift │ ├── RxSwiftTests │ │ ├── TestImplementations │ │ │ ├── ElementIndexPair.swift │ │ │ ├── EquatableArray.swift │ │ │ ├── Mocks │ │ │ │ ├── BackgroundThreadPrimitiveHotObservable.swift │ │ │ │ ├── MainThreadPrimitiveHotObservable.swift │ │ │ │ ├── MockDisposable.swift │ │ │ │ ├── MySubject.swift │ │ │ │ ├── Observable.Extensions.swift │ │ │ │ ├── PrimitiveHotObservable.swift │ │ │ │ ├── PrimitiveMockObserver.swift │ │ │ │ └── TestConnectableObservable.swift │ │ │ ├── Observable+Extensions.swift │ │ │ └── TestVirtualScheduler.swift │ │ └── Tests │ │ │ ├── AnonymousObservable+Test.swift │ │ │ ├── AssumptionsTest.swift │ │ │ ├── BagTest.swift │ │ │ ├── BehaviorSubjectTest.swift │ │ │ ├── CurrentThreadSchedulerTest.swift │ │ │ ├── DisposableTest.swift │ │ │ ├── HistoricalSchedulerTest.swift │ │ │ ├── MainSchedulerTests.swift │ │ │ ├── Observable+AggregateTest.swift │ │ │ ├── Observable+BindingTest.swift │ │ │ ├── Observable+BlockingTest.swift │ │ │ ├── Observable+ConcurrencyTest.swift │ │ │ ├── Observable+CreationTest.swift │ │ │ ├── Observable+DebugTest.swift │ │ │ ├── Observable+MultipleTest+CombineLatest.swift │ │ │ ├── Observable+MultipleTest+CombineLatest.tt │ │ │ ├── Observable+MultipleTest+Zip.swift │ │ │ ├── Observable+MultipleTest+Zip.tt │ │ │ ├── Observable+MultipleTest.swift │ │ │ ├── Observable+SingleTest.swift │ │ │ ├── Observable+StandardSequenceOperatorsTest.swift │ │ │ ├── Observable+SubscriptionTest.swift │ │ │ ├── Observable+TimeTest.swift │ │ │ ├── ObserverTests.swift │ │ │ ├── PublishSubjectTest.swift │ │ │ ├── QueueTests.swift │ │ │ ├── ReplaySubjectTest.swift │ │ │ ├── SchedulerTests.swift │ │ │ ├── SubjectConcurrencyTest.swift │ │ │ ├── VariableTest.swift │ │ │ └── VirtualSchedulerTest.swift │ ├── RxTest.swift │ ├── TestErrors.swift │ └── XCTest+AllTests.swift │ ├── assets │ ├── CNAME.txt │ ├── LICENSE.txt │ └── Rx_Logo_M.png │ └── scripts │ ├── all-tests.sh │ ├── common.sh │ ├── package-spm.swift │ ├── release-prep.sh │ ├── test-linux.sh │ ├── update-jazzy-config.rb │ ├── update-jazzy-docs.sh │ ├── validate-headers.swift │ ├── validate-markdown.sh │ ├── validate-playgrounds.sh │ └── validate-podspec.sh ├── LICENSE ├── MacApp └── ModelGenerator.app │ └── Contents │ ├── Frameworks │ ├── RxCocoa.framework │ │ ├── Headers │ │ ├── Resources │ │ ├── RxCocoa │ │ └── Versions │ │ │ ├── A │ │ │ ├── Headers │ │ │ │ ├── RxCocoa-Swift.h │ │ │ │ ├── RxCocoa.h │ │ │ │ ├── _RX.h │ │ │ │ ├── _RXDelegateProxy.h │ │ │ │ ├── _RXKVOObserver.h │ │ │ │ └── _RXObjCRuntime.h │ │ │ ├── Modules │ │ │ │ ├── RxCocoa.swiftmodule │ │ │ │ │ ├── x86_64.swiftdoc │ │ │ │ │ └── x86_64.swiftmodule │ │ │ │ └── module.modulemap │ │ │ ├── Resources │ │ │ │ ├── Info.plist │ │ │ │ └── SharedSequence+Operators+arity.tt │ │ │ ├── RxCocoa │ │ │ └── _CodeSignature │ │ │ │ └── CodeResources │ │ │ └── Current │ ├── RxSwift.framework │ │ ├── Headers │ │ ├── Resources │ │ ├── RxSwift │ │ └── Versions │ │ │ ├── A │ │ │ ├── Headers │ │ │ │ └── RxSwift-Swift.h │ │ │ ├── Modules │ │ │ │ ├── RxSwift.swiftmodule │ │ │ │ │ ├── x86_64.swiftdoc │ │ │ │ │ └── x86_64.swiftmodule │ │ │ │ └── module.modulemap │ │ │ ├── Resources │ │ │ │ └── Info.plist │ │ │ ├── RxSwift │ │ │ └── _CodeSignature │ │ │ │ └── CodeResources │ │ │ └── Current │ ├── libswiftAppKit.dylib │ ├── libswiftCore.dylib │ ├── libswiftCoreData.dylib │ ├── libswiftCoreGraphics.dylib │ ├── libswiftCoreImage.dylib │ ├── libswiftDarwin.dylib │ ├── libswiftDispatch.dylib │ ├── libswiftFoundation.dylib │ ├── libswiftIOKit.dylib │ ├── libswiftObjectiveC.dylib │ ├── libswiftXPC.dylib │ └── libswiftos.dylib │ ├── Info.plist │ ├── MacOS │ └── ModelGenerator │ ├── PkgInfo │ ├── Resources │ └── Base.lproj │ │ └── Main.storyboardc │ │ ├── Info.plist │ │ ├── MainMenu.nib │ │ ├── NSWindowController-B8D-0N-5wS.nib │ │ └── XfG-lQ-9wD-view-m2S-Jp-Qdl.nib │ └── _CodeSignature │ └── CodeResources ├── ModelGenerator.xcodeproj ├── project.pbxproj ├── project.xcworkspace │ ├── contents.xcworkspacedata │ └── xcuserdata │ │ └── Sheepy.xcuserdatad │ │ └── UserInterfaceState.xcuserstate └── xcuserdata │ └── Sheepy.xcuserdatad │ ├── xcdebugger │ └── Breakpoints_v2.xcbkptlist │ └── xcschemes │ ├── ModelGenerator.xcscheme │ └── xcschememanagement.plist ├── ModelGenerator ├── AppDelegate.swift ├── Assets.xcassets │ └── AppIcon.appiconset │ │ └── Contents.json ├── Base.lproj │ └── Main.storyboard ├── Info.plist ├── NSNumberExtension.swift └── ViewController.swift ├── ModelGeneratorTests ├── Info.plist └── ModelGeneratorTests.swift ├── README.md └── screenshot.png /Cartfile: -------------------------------------------------------------------------------- 1 | github "ReactiveX/RxSwift" "3.0.0-beta.2" 2 | -------------------------------------------------------------------------------- /Cartfile.resolved: -------------------------------------------------------------------------------- 1 | github "ReactiveX/RxSwift" "3.0.0-beta.2" 2 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.io.rx.RxBlocking 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 3.0.0-beta.2 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework.dSYM/Contents/Resources/DWARF/RxBlocking: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxBlocking.framework.dSYM/Contents/Resources/DWARF/RxBlocking -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Modules: -------------------------------------------------------------------------------- 1 | Versions/Current/Modules -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/RxBlocking: -------------------------------------------------------------------------------- 1 | Versions/Current/RxBlocking -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Versions/A/Modules/RxBlocking.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxBlocking.framework/Versions/A/Modules/RxBlocking.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Versions/A/Modules/RxBlocking.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxBlocking.framework/Versions/A/Modules/RxBlocking.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxBlocking { 2 | header "RxBlocking-Swift.h" 3 | } 4 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Versions/A/RxBlocking: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxBlocking.framework/Versions/A/RxBlocking -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxBlocking.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.io.rx.RxCocoa 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 3.0.0-beta.2 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework.dSYM/Contents/Resources/DWARF/RxCocoa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxCocoa.framework.dSYM/Contents/Resources/DWARF/RxCocoa -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Modules: -------------------------------------------------------------------------------- 1 | Versions/Current/Modules -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/RxCocoa: -------------------------------------------------------------------------------- 1 | Versions/Current/RxCocoa -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/A/Headers/RxCocoa.h: -------------------------------------------------------------------------------- 1 | // 2 | // RxCocoa.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 2/21/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "_RX.h" 11 | #import "_RXDelegateProxy.h" 12 | #import "_RXKVOObserver.h" 13 | #import "_RXObjCRuntime.h" 14 | 15 | //! Project version number for RxCocoa. 16 | FOUNDATION_EXPORT double RxCocoaVersionNumber; 17 | 18 | //! Project version string for RxCocoa. 19 | FOUNDATION_EXPORT const unsigned char RxCocoaVersionString[]; -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/A/Headers/_RXDelegateProxy.h: -------------------------------------------------------------------------------- 1 | // 2 | // _RXDelegateProxy.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/4/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface _RXDelegateProxy : NSObject 14 | 15 | @property (nonatomic, weak, readonly) id _forwardToDelegate; 16 | 17 | -(void)_setForwardToDelegate:(id __nullable)forwardToDelegate retainDelegate:(BOOL)retainDelegate; 18 | 19 | -(BOOL)hasWiredImplementationForSelector:(SEL)selector; 20 | 21 | -(void)_sentMessage:(SEL)selector withArguments:(NSArray*)arguments; 22 | -(void)_methodInvoked:(SEL)selector withArguments:(NSArray*)arguments; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/A/Headers/_RXKVOObserver.h: -------------------------------------------------------------------------------- 1 | // 2 | // _RXKVOObserver.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/11/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /** 12 | ################################################################################ 13 | This file is part of RX private API 14 | ################################################################################ 15 | */ 16 | 17 | // Exists because if written in Swift, reading unowned is disabled during dealloc process 18 | @interface _RXKVOObserver : NSObject 19 | 20 | -(instancetype)initWithTarget:(id)target 21 | retainTarget:(BOOL)retainTarget 22 | keyPath:(NSString*)keyPath 23 | options:(NSKeyValueObservingOptions)options 24 | callback:(void (^)(id))callback; 25 | 26 | -(void)dispose; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxCocoa { 2 | umbrella header "RxCocoa.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | 8 | module RxCocoa.Swift { 9 | header "RxCocoa-Swift.h" 10 | } 11 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/A/RxCocoa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxCocoa.framework/Versions/A/RxCocoa -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxCocoa.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.io.rx.RxSwift 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 3.0.0-beta.2 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework.dSYM/Contents/Resources/DWARF/RxSwift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxSwift.framework.dSYM/Contents/Resources/DWARF/RxSwift -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Modules: -------------------------------------------------------------------------------- 1 | Versions/Current/Modules -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/RxSwift: -------------------------------------------------------------------------------- 1 | Versions/Current/RxSwift -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxSwift { 2 | header "RxSwift-Swift.h" 3 | } 4 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Versions/A/RxSwift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxSwift.framework/Versions/A/RxSwift -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxSwift.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework.dSYM/Contents/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | English 7 | CFBundleIdentifier 8 | com.apple.xcode.dsym.io.rx.RxTests 9 | CFBundleInfoDictionaryVersion 10 | 6.0 11 | CFBundlePackageType 12 | dSYM 13 | CFBundleSignature 14 | ???? 15 | CFBundleShortVersionString 16 | 3.0.0-beta.2 17 | CFBundleVersion 18 | 1 19 | 20 | 21 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework.dSYM/Contents/Resources/DWARF/RxTests: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxTests.framework.dSYM/Contents/Resources/DWARF/RxTests -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Modules: -------------------------------------------------------------------------------- 1 | Versions/Current/Modules -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/RxTests: -------------------------------------------------------------------------------- 1 | Versions/Current/RxTests -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Versions/A/Modules/RxTests.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxTests.framework/Versions/A/Modules/RxTests.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Versions/A/Modules/RxTests.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxTests.framework/Versions/A/Modules/RxTests.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxTests { 2 | header "RxTests-Swift.h" 3 | } 4 | -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Versions/A/RxTests: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Build/Mac/RxTests.framework/Versions/A/RxTests -------------------------------------------------------------------------------- /Carthage/Build/Mac/RxTests.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/.gitignore: -------------------------------------------------------------------------------- 1 | # Xcode 2 | # 3 | build/ 4 | Build/ 5 | *.pbxuser 6 | !default.pbxuser 7 | *.mode1v3 8 | !default.mode1v3 9 | *.mode2v3 10 | !default.mode2v3 11 | *.perspectivev3 12 | !default.perspectivev3 13 | xcuserdata 14 | *.xccheckout 15 | *.moved-aside 16 | DerivedData 17 | *.hmap 18 | *.ipa 19 | *.xcuserstate 20 | 21 | timeline.xctimeline 22 | 23 | # CocoaPods 24 | # 25 | # We recommend against adding the Pods directory to your .gitignore. However 26 | # you should judge for yourself, the pros and cons are mentioned at: 27 | # http://guides.cocoapods.org/using/using-cocoapods.html#should-i-ignore-the-pods-directory-in-source-control 28 | # 29 | # Pods/ 30 | 31 | # Carthage 32 | # 33 | # Add this line if you want to avoid checking in source code from Carthage dependencies. 34 | # Carthage/Checkouts 35 | 36 | Carthage/Build 37 | 38 | 39 | # Various 40 | 41 | .DS_Store 42 | 43 | 44 | # Linux 45 | 46 | *.swp 47 | *.swo 48 | 49 | # Swift Package Manager 50 | 51 | .build/ 52 | Packages/ 53 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/.travis.yml: -------------------------------------------------------------------------------- 1 | language: objective-c 2 | 3 | osx_image: xcode8 4 | env: 5 | matrix: 6 | - DANGER=1 7 | - TEST="iOS" 8 | - TEST="OSX" 9 | - TEST="watchOS" 10 | - TEST="tvOS" 11 | - TEST="iOS-Example" 12 | 13 | notifications: 14 | slack: rxswift:3ykt2Z61f8GkdvhCZTYPduOL 15 | email: false 16 | 17 | script: 18 | - if [ "${DANGER}" -eq 1 ]; then 19 | bundle exec danger --verbose; 20 | else 21 | xcodebuild -version; 22 | xcodebuild -showsdks; 23 | ./scripts/all-tests.sh "${TEST}"; 24 | fi 25 | 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Documentation/ExampleApp.md: -------------------------------------------------------------------------------- 1 | 2 | ## RxExamples 3 | 4 | To run the example app: 5 | 6 | * Open `Rx.xcworkspace` 7 | * Choose one of example schemes (RxExample-iOS, RxExample-OSX) and hit `Run`. 8 | 9 | You can also run the example app using CocoaPods. 10 | 11 | ``` 12 | pod try RxSwift 13 | ``` 14 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Documentation/NewFeatureRequestTemplate.md: -------------------------------------------------------------------------------- 1 | **Please copy the following template [here](https://github.com/ReactiveX/RxSwift/issues/new) and fill in the missing fields so we can help you as soon as possible.** 2 | 3 | ``` 4 | *Short description of missing functionality*: 5 | 6 | E.g. I want this library to implement xxx operator. 7 | 8 | *Short code example of how you would like to use the API*: 9 | 10 | code goes here 11 | 12 | *The reason why I need this functionality*: 13 | 14 | E.g. I was trying to .... 15 | 16 | *Code I have right now*: 17 | 18 | code snippet that demonstrates how you've attempted to solve the problem 19 | 20 | ``` 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Documentation/Playgrounds.md: -------------------------------------------------------------------------------- 1 | ## Playgrounds 2 | 3 | To use playgrounds: 4 | 5 | * Open `Rx.xcworkspace` 6 | * Build the `RxSwift-OSX` scheme 7 | * Open `Rx` playground in the `Rx.xcworkspace` tree view. 8 | * Choose `View > Debug Area > Show Debug Area` 9 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Documentation/Subjects.md: -------------------------------------------------------------------------------- 1 | Subjects 2 | ======== 3 | 4 | All of behave exactly the same like described [here](http://reactivex.io/documentation/subject.html) 5 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Gemfile: -------------------------------------------------------------------------------- 1 | source 'https://rubygems.org' 2 | 3 | gem 'danger' 4 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Gemfile.lock: -------------------------------------------------------------------------------- 1 | GEM 2 | remote: https://rubygems.org/ 3 | specs: 4 | addressable (2.3.8) 5 | claide (1.0.0) 6 | colored (1.2) 7 | danger (0.7.4) 8 | claide 9 | colored (~> 1.2) 10 | faraday 11 | git 12 | octokit (~> 4.2) 13 | redcarpet (~> 3.3) 14 | terminal-table (~> 1) 15 | faraday (0.9.1) 16 | multipart-post (>= 1.2, < 3) 17 | git (1.3.0) 18 | multipart-post (2.0.0) 19 | octokit (4.3.0) 20 | sawyer (~> 0.7.0, >= 0.5.3) 21 | redcarpet (3.3.4) 22 | sawyer (0.7.0) 23 | addressable (>= 2.3.5, < 2.5) 24 | faraday (~> 0.8, < 0.10) 25 | terminal-table (1.4.5) 26 | 27 | PLATFORMS 28 | ruby 29 | 30 | DEPENDENCIES 31 | danger 32 | 33 | BUNDLED WITH 34 | 1.12.5 35 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Preprocessor/Preprocessor.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Rx.playground/Pages/Enable_RxSwift.resourceCount.xcplaygroundpage/Contents.swift: -------------------------------------------------------------------------------- 1 | //: [Back](@previous) 2 | /*: 3 | Follow these instructions to enable `RxSwift.resourceCount` in your project: 4 | # 5 | **CocoaPods** 6 | 1. Add a `post_install` hook to your Podfile, e.g.: 7 | ``` 8 | target 'AppTarget' do 9 | pod 'RxSwift' 10 | end 11 | 12 | post_install do |installer| 13 | installer.pods_project.targets.each do |target| 14 | if target.name == 'RxSwift' 15 | target.build_configurations.each do |config| 16 | if config.name == 'Debug' 17 | config.build_settings['OTHER_SWIFT_FLAGS'] ||= ['-D', 'TRACE_RESOURCES'] 18 | end 19 | end 20 | end 21 | end 22 | end 23 | ``` 24 | 2. Run `pod update`. 25 | 3. Build project (**Product** → **Build**). 26 | # 27 | **Carthage** 28 | 1. Run `carthage build --configuration Debug`. 29 | 2. Build project (**Product** → **Build**). 30 | */ 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Rx.playground/Pages/Table_of_Contents.xcplaygroundpage/Contents.swift: -------------------------------------------------------------------------------- 1 | /*: 2 | > # IMPORTANT: To use **Rx.playground**: 3 | 1. Open **Rx.xcworkspace**. 4 | 1. Build the **RxSwift-OSX** scheme (**Product** → **Build**). 5 | 1. Open **Rx** playground in the **Project navigator**. 6 | 1. Show the Debug Area (**View** → **Debug Area** → **Show Debug Area**). 7 | ---- 8 | ## Table of Contents: 9 | 1. [Introduction](Introduction) 10 | 1. [Creating and Subscribing to Observables](Creating_and_Subscribing_to_Observables) 11 | 1. [Working with Subjects](Working_with_Subjects) 12 | 1. [Combining Operators](Combining_Operators) 13 | 1. [Transforming Operators](Transforming_Operators) 14 | 1. [Filtering and Conditional Operators](Filtering_and_Conditional_Operators) 15 | 1. [Mathematical and Aggregate Operators](Mathematical_and_Aggregate_Operators) 16 | 1. [Connectable Operators](Connectable_Operators) 17 | 1. [Error Handling Operators](Error_Handling_Operators) 18 | 1. [Debugging Operators](Debugging_Operators) 19 | */ 20 | 21 | //: [Next](@next) 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Rx.playground/SupportCode.remap: -------------------------------------------------------------------------------- 1 | [ 2 | { 3 | "file": "/Users/mo/Documents/OpenSource/RxSwift/Rx.playground/Sources/SupportCode.swift", 4 | "offset": 276, 5 | "remove": 9, 6 | }, 7 | { 8 | "file": "/Users/mo/Documents/OpenSource/RxSwift/Rx.playground/Sources/SupportCode.swift", 9 | "offset": 733, 10 | "text": "@escaping ", 11 | } 12 | ] 13 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Rx.playground/contents.xcplayground: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | 7 | 8 | 9 | 10 | 11 | 12 | 13 | 14 | 15 | 16 | 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Rx.playground/playground.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Rx.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxBlocking/BlockingObservable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BlockingObservable.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 10/19/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | 14 | /** 15 | `BlockingObservable` is a variety of `Observable` that provides blocking operators. 16 | 17 | It can be useful for testing and demo purposes, but is generally inappropriate for production applications. 18 | 19 | If you think you need to use a `BlockingObservable` this is usually a sign that you should rethink your 20 | design. 21 | */ 22 | public struct BlockingObservable { 23 | let timeout: RxTimeInterval? 24 | let source: Observable 25 | } 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxBlocking/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.0.0-beta.2 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxBlocking/ObservableConvertibleType+Blocking.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ObservableConvertibleType+Blocking.swift 3 | // RxBlocking 4 | // 5 | // Created by Krunoslav Zaher on 7/12/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | 14 | extension ObservableConvertibleType { 15 | /** 16 | Converts an Observable into a `BlockingObservable` (an Observable with blocking operators). 17 | 18 | - parameter timeout: Maximal time interval BlockingObservable can block without throwing `RxError.timeout`. 19 | - returns: `BlockingObservable` version of `self` 20 | */ 21 | // @warn_unused_result(message:"http://git.io/rxs.uo") 22 | public func toBlocking(timeout: RxTimeInterval? = nil) -> BlockingObservable { 23 | return BlockingObservable(timeout: timeout, source: self.asObservable()) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxBlocking/README.md: -------------------------------------------------------------------------------- 1 | RxBlocking 2 | ============================================================ 3 | 4 | Set of blocking operators for easy unit testing. 5 | 6 | ***Don't use these operators in production apps. These operators are only meant for testing purposes.*** 7 | 8 | 9 | ```swift 10 | extension ObservableType { 11 | public func toArray() throws -> [E] {} 12 | } 13 | 14 | extension ObservableType { 15 | public func first() throws -> E? {} 16 | } 17 | 18 | extension ObservableType { 19 | public func last() throws -> E? {} 20 | } 21 | ``` 22 | 23 | 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/CocoaUnits/Driver/ControlEvent+Driver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ControlEvent+Driver.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 9/19/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | 14 | extension ControlEvent { 15 | /** 16 | Converts `ControlEvent` to `Driver` unit. 17 | 18 | `ControlEvent` already can't fail, so no special case needs to be handled. 19 | */ 20 | // @warn_unused_result(message:"http://git.io/rxs.uo") 21 | public func asDriver() -> Driver { 22 | return self.asDriver { (error) -> Driver in 23 | #if DEBUG 24 | rxFatalError("Somehow driver received error from a source that shouldn't fail.") 25 | #else 26 | return Driver.empty() 27 | #endif 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/CocoaUnits/Driver/ControlProperty+Driver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ControlProperty+Driver.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 9/19/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | 14 | extension ControlProperty { 15 | /** 16 | Converts `ControlProperty` to `Driver` unit. 17 | 18 | `ControlProperty` already can't fail, so no special case needs to be handled. 19 | */ 20 | // @warn_unused_result(message:"http://git.io/rxs.uo") 21 | public func asDriver() -> Driver { 22 | return self.asDriver { (error) -> Driver in 23 | #if DEBUG 24 | rxFatalError("Somehow driver received error from a source that shouldn't fail.") 25 | #else 26 | return Driver.empty() 27 | #endif 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/CocoaUnits/Driver/Variable+Driver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Variable+Driver.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 12/28/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | 14 | extension Variable { 15 | /** 16 | Converts `Variable` to `Driver` unit. 17 | 18 | - returns: Driving observable sequence. 19 | */ 20 | // @warn_unused_result(message:"http://git.io/rxs.uo") 21 | public func asDriver() -> Driver { 22 | let source = self.asObservable() 23 | .observeOn(DriverSharingStrategy.scheduler) 24 | return Driver(source) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/CocoaUnits/SharedSequence/Variable+SharedSequence.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Variable+SharedSequence.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 12/28/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | 14 | extension Variable { 15 | /** 16 | Converts `Variable` to `SharedSequence` unit. 17 | 18 | - returns: Observable sequence. 19 | */ 20 | // @warn_unused_result(message:"http://git.io/rxs.uo") 21 | public func asSharedSequence(strategy: SharingStrategy.Type = SharingStrategy.self) -> SharedSequence { 22 | let source = self.asObservable() 23 | .observeOn(SharingStrategy.scheduler) 24 | return SharedSequence(source) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/KVORepresentable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // KVORepresentable.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 11/14/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Type that is KVO representable (KVO mechanism can be used to observe it). 13 | */ 14 | public protocol KVORepresentable { 15 | /** 16 | Associated KVO type. 17 | */ 18 | associatedtype KVOType 19 | 20 | /** 21 | Constructs `Self` using KVO value. 22 | */ 23 | init?(KVOValue: KVOType) 24 | } 25 | 26 | extension KVORepresentable { 27 | /** 28 | Initializes `KVORepresentable` with optional value. 29 | */ 30 | init?(KVOValue: KVOType?) { 31 | guard let KVOValue = KVOValue else { 32 | return nil 33 | } 34 | 35 | self.init(KVOValue: KVOValue) 36 | } 37 | } 38 | 39 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/Logging.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Logging.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 4/3/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Simple logging settings for RxCocoa library. 13 | */ 14 | public struct Logging { 15 | public typealias LogURLRequest = (URLRequest) -> Bool 16 | 17 | /** 18 | Log URL requests to standard output in curl format. 19 | */ 20 | public static var URLRequests: LogURLRequest = { _ in 21 | #if DEBUG 22 | return true 23 | #else 24 | return false 25 | #endif 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/RxTarget.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTarget.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/12/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | 14 | class RxTarget : NSObject 15 | , Disposable { 16 | 17 | private var retainSelf: RxTarget? 18 | 19 | override init() { 20 | super.init() 21 | self.retainSelf = self 22 | 23 | #if TRACE_RESOURCES 24 | OSAtomicIncrement32(&resourceCount) 25 | #endif 26 | 27 | #if DEBUG 28 | MainScheduler.ensureExecutingOnScheduler() 29 | #endif 30 | } 31 | 32 | func dispose() { 33 | #if DEBUG 34 | MainScheduler.ensureExecutingOnScheduler() 35 | #endif 36 | self.retainSelf = nil 37 | } 38 | 39 | #if TRACE_RESOURCES 40 | deinit { 41 | OSAtomicDecrement32(&resourceCount) 42 | } 43 | #endif 44 | } 45 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/_RX.m: -------------------------------------------------------------------------------- 1 | // 2 | // _RX.m 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/12/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import "_RX.h" 10 | 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/_RXDelegateProxy.h: -------------------------------------------------------------------------------- 1 | // 2 | // _RXDelegateProxy.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/4/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface _RXDelegateProxy : NSObject 14 | 15 | @property (nonatomic, weak, readonly) id _forwardToDelegate; 16 | 17 | -(void)_setForwardToDelegate:(id __nullable)forwardToDelegate retainDelegate:(BOOL)retainDelegate; 18 | 19 | -(BOOL)hasWiredImplementationForSelector:(SEL)selector; 20 | 21 | -(void)_sentMessage:(SEL)selector withArguments:(NSArray*)arguments; 22 | -(void)_methodInvoked:(SEL)selector withArguments:(NSArray*)arguments; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Common/_RXKVOObserver.h: -------------------------------------------------------------------------------- 1 | // 2 | // _RXKVOObserver.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/11/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /** 12 | ################################################################################ 13 | This file is part of RX private API 14 | ################################################################################ 15 | */ 16 | 17 | // Exists because if written in Swift, reading unowned is disabled during dealloc process 18 | @interface _RXKVOObserver : NSObject 19 | 20 | -(instancetype)initWithTarget:(id)target 21 | retainTarget:(BOOL)retainTarget 22 | keyPath:(NSString*)keyPath 23 | options:(NSKeyValueObservingOptions)options 24 | callback:(void (^)(id))callback; 25 | 26 | -(void)dispose; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.0.0-beta.2 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/OSX/NSButton+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSButton+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 5/17/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | import Cocoa 14 | 15 | extension Reactive where Base: NSButton { 16 | 17 | /** 18 | Reactive wrapper for control event. 19 | */ 20 | public var tap: ControlEvent { 21 | return controlEvent 22 | } 23 | 24 | /** 25 | Reactive wrapper for `state` property`. 26 | */ 27 | public var state: ControlProperty { 28 | return NSButton.rx.value( 29 | base, 30 | getter: { control in 31 | return control.state 32 | }, setter: { control, state in 33 | control.state = state 34 | } 35 | ) 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/OSX/NSSlider+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSSlider+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Junior B. on 24/05/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | import Cocoa 14 | 15 | extension Reactive where Base: NSSlider { 16 | 17 | /** 18 | Reactive wrapper for `value` property. 19 | */ 20 | public var value: ControlProperty { 21 | return NSControl.rx.value( 22 | base, 23 | getter: { control in 24 | return control.doubleValue 25 | }, 26 | setter: { control, value in 27 | control.doubleValue = value 28 | } 29 | ) 30 | } 31 | 32 | } 33 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/OSX/NSView+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSView+Rx.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 12/6/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import Cocoa 11 | #if !RX_NO_MODULE 12 | import RxSwift 13 | #endif 14 | 15 | extension Reactive where Base: NSView { 16 | /** 17 | Bindable sink for `hidden` property. 18 | */ 19 | public var hidden: AnyObserver { 20 | return UIBindingObserver(UIElement: self.base) { view, value in 21 | view.isHidden = value 22 | }.asObserver() 23 | } 24 | 25 | /** 26 | Bindable sink for `alphaValue` property. 27 | */ 28 | public var alpha: AnyObserver { 29 | return UIBindingObserver(UIElement: self.base) { view, value in 30 | view.alphaValue = value 31 | }.asObserver() 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/RxCocoa.h: -------------------------------------------------------------------------------- 1 | // 2 | // RxCocoa.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 2/21/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "_RX.h" 11 | #import "_RXDelegateProxy.h" 12 | #import "_RXKVOObserver.h" 13 | #import "_RXObjCRuntime.h" 14 | 15 | //! Project version number for RxCocoa. 16 | FOUNDATION_EXPORT double RxCocoaVersionNumber; 17 | 18 | //! Project version string for RxCocoa. 19 | FOUNDATION_EXPORT const unsigned char RxCocoaVersionString[]; -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/Events/ItemEvents.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ItemEvents.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 6/20/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | #if os(iOS) || os(tvOS) 13 | public typealias ItemMovedEvent = (sourceIndex: IndexPath, destinationIndex: IndexPath) 14 | public typealias WillDisplayCellEvent = (cell: UITableViewCell, indexPath: IndexPath) 15 | public typealias DidEndDisplayingCellEvent = (cell: UITableViewCell, indexPath: IndexPath) 16 | #endif 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/Protocols/RxCollectionViewDataSourceType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxCollectionViewDataSourceType.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 6/29/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | import UIKit 13 | #if !RX_NO_MODULE 14 | import RxSwift 15 | #endif 16 | 17 | /** 18 | Marks data source as `UICollectionView` reactive data source enabling it to be used with one of the `bindTo` methods. 19 | */ 20 | public protocol RxCollectionViewDataSourceType /*: UICollectionViewDataSource*/ { 21 | 22 | /** 23 | Type of elements that can be bound to collection view. 24 | */ 25 | associatedtype Element 26 | 27 | /** 28 | New observable sequence event observed. 29 | 30 | - parameter collectionView: Bound collection view. 31 | - parameter observedEvent: Event 32 | */ 33 | func collectionView(_ collectionView: UICollectionView, observedEvent: Event) -> Void 34 | } 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/Protocols/RxTableViewDataSourceType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTableViewDataSourceType.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 6/26/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | import UIKit 13 | #if !RX_NO_MODULE 14 | import RxSwift 15 | #endif 16 | 17 | /** 18 | Marks data source as `UITableView` reactive data source enabling it to be used with one of the `bindTo` methods. 19 | */ 20 | public protocol RxTableViewDataSourceType /*: UITableViewDataSource*/ { 21 | 22 | /** 23 | Type of elements that can be bound to table view. 24 | */ 25 | associatedtype Element 26 | 27 | /** 28 | New observable sequence event observed. 29 | 30 | - parameter tableView: Bound table view. 31 | - parameter observedEvent: Event 32 | */ 33 | func tableView(_ tableView: UITableView, observedEvent: Event) -> Void 34 | } 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/Proxies/RxTableViewDelegateProxy.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTableViewDelegateProxy.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 6/15/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | import UIKit 13 | #if !RX_NO_MODULE 14 | import RxSwift 15 | #endif 16 | 17 | /** 18 | For more information take a look at `DelegateProxyType`. 19 | */ 20 | public class RxTableViewDelegateProxy 21 | : RxScrollViewDelegateProxy 22 | , UITableViewDelegate { 23 | 24 | 25 | /** 26 | Typed parent object. 27 | */ 28 | public weak private(set) var tableView: UITableView? 29 | 30 | /** 31 | Initializes `RxTableViewDelegateProxy` 32 | 33 | - parameter parentObject: Parent object for delegate proxy. 34 | */ 35 | public required init(parentObject: AnyObject) { 36 | self.tableView = (parentObject as! UITableView) 37 | super.init(parentObject: parentObject) 38 | } 39 | 40 | } 41 | 42 | #endif 43 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIActivityIndicatorView+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIActivityIndicatorView+Rx.swift 3 | // Rx 4 | // 5 | // Created by Ivan Persidskiy on 02/12/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | import UIKit 11 | 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | 16 | extension Reactive where Base: UIActivityIndicatorView { 17 | 18 | /** 19 | Bindable sink for `startAnimating()`, `stopAnimating()` methods. 20 | */ 21 | public var animating: AnyObserver { 22 | return UIBindingObserver(UIElement: self.base) { activityIndicator, active in 23 | if active { 24 | activityIndicator.startAnimating() 25 | } else { 26 | activityIndicator.stopAnimating() 27 | } 28 | }.asObserver() 29 | } 30 | 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIAlertAction+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIAlertAction+Rx.swift 3 | // Rx 4 | // 5 | // Created by Andrew Breckenridge on 5/7/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | #if os(iOS) || os(tvOS) 12 | 13 | import Foundation 14 | import UIKit 15 | 16 | #if !RX_NO_MODULE 17 | import RxSwift 18 | #endif 19 | 20 | extension Reactive where Base: UIAlertAction { 21 | 22 | /** 23 | Bindable sink for `enabled` property. 24 | */ 25 | public var enabled: AnyObserver { 26 | return UIBindingObserver(UIElement: self.base) { alertAction, value in 27 | alertAction.isEnabled = value 28 | }.asObserver() 29 | } 30 | 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIApplication+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIApplication+Rx.swift 3 | // RxExample 4 | // 5 | // Created by Mads Bøgeskov on 18/01/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | #if os(iOS) 12 | import UIKit 13 | 14 | #if !RX_NO_MODULE 15 | import RxSwift 16 | #endif 17 | 18 | extension Reactive where Base: UIApplication { 19 | 20 | /** 21 | Bindable sink for `networkActivityIndicatorVisible`. 22 | */ 23 | public var networkActivityIndicatorVisible: AnyObserver { 24 | return UIBindingObserver(UIElement: self.base) { application, active in 25 | application.isNetworkActivityIndicatorVisible = active 26 | }.asObserver() 27 | } 28 | } 29 | #endif 30 | 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIDatePicker+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIDatePicker+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Daniel Tartaglia on 5/31/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | 11 | import Foundation 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | import UIKit 16 | 17 | extension Reactive where Base: UIDatePicker { 18 | 19 | /** 20 | Reactive wrapper for `date` property. 21 | */ 22 | public var date: ControlProperty { 23 | return UIControl.rx.value( 24 | self.base, 25 | getter: { datePicker in 26 | datePicker.date 27 | }, setter: { datePicker, value in 28 | datePicker.date = value 29 | } 30 | ) 31 | } 32 | 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UILabel+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UILabel+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 4/1/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | import UIKit 16 | 17 | extension Reactive where Base: UILabel { 18 | 19 | /** 20 | Bindable sink for `text` property. 21 | */ 22 | public var text: AnyObserver { 23 | return UIBindingObserver(UIElement: self.base) { label, text in 24 | label.text = text 25 | }.asObserver() 26 | } 27 | 28 | /** 29 | Bindable sink for `attributedText` property. 30 | */ 31 | public var attributedText: AnyObserver { 32 | return UIBindingObserver(UIElement: self.base) { label, text in 33 | label.attributedText = text 34 | }.asObserver() 35 | } 36 | 37 | } 38 | 39 | #endif 40 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UINavigationItem+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UINavigationItem+Rx.swift 3 | // Rx 4 | // 5 | // Created by kumapo on 2016/05/09. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | import UIKit 13 | #if !RX_NO_MODULE 14 | import RxSwift 15 | #endif 16 | 17 | extension Reactive where Base: UINavigationItem { 18 | /** 19 | Bindable sink for `title` property. 20 | */ 21 | public var title: AnyObserver { 22 | return UIBindingObserver(UIElement: self.base) { navigationItem, text in 23 | navigationItem.title = text 24 | }.asObserver() 25 | } 26 | 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIPageControl+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPageControl+Rx.swift 3 | // Rx 4 | // 5 | // Created by Francesco Puntillo on 14/04/2016. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | import UIKit 16 | 17 | extension Reactive where Base: UIPageControl { 18 | 19 | /** 20 | Bindable sink for `currentPage` property. 21 | */ 22 | public var currentPage: AnyObserver { 23 | return UIBindingObserver(UIElement: self.base) { controller, page in 24 | controller.currentPage = page 25 | }.asObserver() 26 | } 27 | } 28 | 29 | #endif 30 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIProgressView+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIProgressView+Rx.swift 3 | // Rx 4 | // 5 | // Created by Samuel Bae on 2/27/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | import UIKit 16 | 17 | extension Reactive where Base: UIProgressView { 18 | 19 | /** 20 | Bindable sink for `progress` property 21 | */ 22 | public var progress: AnyObserver { 23 | return UIBindingObserver(UIElement: self.base) { progressView, progress in 24 | progressView.progress = progress 25 | }.asObserver() 26 | } 27 | 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIRefreshControl+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIRefreshControl+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Yosuke Ishikawa on 1/31/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | import UIKit 11 | 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | 16 | extension Reactive where Base: UIRefreshControl { 17 | 18 | /** 19 | Bindable sink for `beginRefreshing()`, `endRefreshing()` methods. 20 | */ 21 | public var refreshing: AnyObserver { 22 | return UIBindingObserver(UIElement: self.base) { refreshControl, refresh in 23 | if refresh { 24 | refreshControl.beginRefreshing() 25 | } else { 26 | refreshControl.endRefreshing() 27 | } 28 | }.asObserver() 29 | } 30 | 31 | } 32 | 33 | #endif 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UISegmentedControl+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISegmentedControl+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Carlos García on 8/7/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import UIKit 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | 16 | 17 | extension Reactive where Base: UISegmentedControl { 18 | 19 | /** 20 | Reactive wrapper for `selectedSegmentIndex` property. 21 | */ 22 | public var value: ControlProperty { 23 | return UIControl.rx.value( 24 | self.base, 25 | getter: { segmentedControl in 26 | segmentedControl.selectedSegmentIndex 27 | }, setter: { segmentedControl, value in 28 | segmentedControl.selectedSegmentIndex = value 29 | } 30 | ) 31 | } 32 | 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UISlider+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISlider+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Alexander van der Werff on 28/05/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | 11 | import Foundation 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | import UIKit 16 | 17 | extension Reactive where Base: UISlider { 18 | 19 | /** 20 | Reactive wrapper for `value` property. 21 | */ 22 | public var value: ControlProperty { 23 | return UIControl.rx.value( 24 | self.base, 25 | getter: { slider in 26 | slider.value 27 | }, setter: { slider, value in 28 | slider.value = value 29 | } 30 | ) 31 | } 32 | 33 | } 34 | 35 | #endif 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIStepper+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIStepper+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Yuta ToKoRo on 9/1/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | 11 | import Foundation 12 | import UIKit 13 | #if !RX_NO_MODULE 14 | import RxSwift 15 | #endif 16 | 17 | extension Reactive where Base: UIStepper { 18 | 19 | /** 20 | Reactive wrapper for `value` property. 21 | */ 22 | public var value: ControlProperty { 23 | return UIControl.rx.value( 24 | self.base, 25 | getter: { stepper in 26 | stepper.value 27 | }, setter: { stepper, value in 28 | stepper.value = value 29 | } 30 | ) 31 | } 32 | 33 | } 34 | 35 | #endif 36 | 37 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UISwitch+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UISwitch+Rx.swift 3 | // RxCocoa 4 | // 5 | // Created by Carlos García on 8/7/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | 11 | import UIKit 12 | #if !RX_NO_MODULE 13 | import RxSwift 14 | #endif 15 | 16 | 17 | extension Reactive where Base: UISwitch { 18 | 19 | /** 20 | Reactive wrapper for `on` property. 21 | 22 | **⚠️Unlike other controls, Apple is reusing instances of UISwitch or a there is a leak, 23 | so underlying observable sequence won't complete when nothing holds a strong reference 24 | to UISwitch.⚠️** 25 | */ 26 | public var value: ControlProperty { 27 | return UIControl.rx.value( 28 | self.base, 29 | getter: { uiSwitch in 30 | uiSwitch.isOn 31 | }, setter: { uiSwitch, value in 32 | uiSwitch.isOn = value 33 | } 34 | ) 35 | } 36 | 37 | } 38 | 39 | #endif 40 | 41 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UITabBarItem+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITabBarItem+Rx.swift 3 | // Rx 4 | // 5 | // Created by Mateusz Derks on 04/03/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | import UIKit 13 | #if !RX_NO_MODULE 14 | import RxSwift 15 | #endif 16 | 17 | extension Reactive where Base: UITabBarItem { 18 | 19 | /** 20 | Bindable sink for `badgeValue` property. 21 | */ 22 | public var badgeValue: AnyObserver { 23 | return UIBindingObserver(UIElement: self.base) { tabBarItem, badgeValue in 24 | tabBarItem.badgeValue = badgeValue 25 | }.asObserver() 26 | } 27 | 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIView+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIView+Rx.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 12/6/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) || os(tvOS) 10 | 11 | import Foundation 12 | import UIKit 13 | #if !RX_NO_MODULE 14 | import RxSwift 15 | #endif 16 | 17 | extension Reactive where Base: UIView { 18 | /** 19 | Bindable sink for `hidden` property. 20 | */ 21 | public var hidden: AnyObserver { 22 | return UIBindingObserver(UIElement: self.base) { view, hidden in 23 | view.isHidden = hidden 24 | }.asObserver() 25 | } 26 | 27 | /** 28 | Bindable sink for `alpha` property. 29 | */ 30 | public var alpha: AnyObserver { 31 | return UIBindingObserver(UIElement: self.base) { view, alpha in 32 | view.alpha = alpha 33 | }.asObserver() 34 | } 35 | } 36 | 37 | #endif 38 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxCocoa/iOS/UIViewController+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewController+Rx.swift 3 | // Rx 4 | // 5 | // Created by Kyle Fuller on 27/05/2016. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | #if os(iOS) 12 | import UIKit 13 | 14 | #if !RX_NO_MODULE 15 | import RxSwift 16 | #endif 17 | 18 | extension Reactive where Base: UIViewController { 19 | 20 | /** 21 | Bindable sink for `title`. 22 | */ 23 | public var title: AnyObserver { 24 | return UIBindingObserver(UIElement: self.base) { viewController, title in 25 | viewController.title = title 26 | }.asObserver() 27 | } 28 | } 29 | #endif 30 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/Extensions/RxCLLocationManagerDelegateProxy.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxCLLocationManagerDelegateProxy.swift 3 | // RxCocoa 4 | // 5 | // Created by Carlos García on 8/7/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import CoreLocation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | import RxCocoa 13 | #endif 14 | 15 | class RxCLLocationManagerDelegateProxy : DelegateProxy 16 | , CLLocationManagerDelegate 17 | , DelegateProxyType { 18 | 19 | class func currentDelegateFor(_ object: AnyObject) -> AnyObject? { 20 | let locationManager: CLLocationManager = object as! CLLocationManager 21 | return locationManager.delegate 22 | } 23 | 24 | class func setCurrentDelegate(_ delegate: AnyObject?, toObject object: AnyObject) { 25 | let locationManager: CLLocationManager = object as! CLLocationManager 26 | locationManager.delegate = delegate as? CLLocationManagerDelegate 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/AnimatableSectionModelType+ItemPath.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AnimatableSectionModelType+ItemPath.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/9/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension Array where Element: AnimatableSectionModelType { 12 | subscript(index: ItemPath) -> Element.Item { 13 | return self[index.sectionIndex].items[index.itemIndex] 14 | } 15 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/AnimatableSectionModelType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AnimatableSectionModelType.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/6/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol AnimatableSectionModelType 12 | : SectionModelType 13 | , IdentifiableType { 14 | associatedtype Item : IdentifiableType, Equatable 15 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/AnimationConfiguration.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AnimationConfiguration.swift 3 | // RxDataSources 4 | // 5 | // Created by Esteban Torres on 5/2/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | /** 13 | Exposes custom animation styles for insertion, deletion and reloading behavior. 14 | */ 15 | public struct AnimationConfiguration { 16 | let insertAnimation: UITableViewRowAnimation 17 | let reloadAnimation: UITableViewRowAnimation 18 | let deleteAnimation: UITableViewRowAnimation 19 | 20 | public init(insertAnimation: UITableViewRowAnimation = .automatic, 21 | reloadAnimation: UITableViewRowAnimation = .automatic, 22 | deleteAnimation: UITableViewRowAnimation = .automatic) { 23 | self.insertAnimation = insertAnimation 24 | self.reloadAnimation = reloadAnimation 25 | self.deleteAnimation = deleteAnimation 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/DataSources.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DataSources.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/8/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | enum RxDataSourceError : Error { 12 | case unwrappingOptional 13 | case preconditionFailed(message: String) 14 | } 15 | 16 | func rxPrecondition(_ condition: Bool, _ message: @autoclosure() -> String) throws -> () { 17 | if condition { 18 | return 19 | } 20 | rxDebugFatalError("Precondition failed") 21 | 22 | throw RxDataSourceError.preconditionFailed(message: message()) 23 | } 24 | 25 | func rxDebugFatalError(_ error: Error) { 26 | rxDebugFatalError("\(error)") 27 | } 28 | 29 | func rxDebugFatalError(_ message: String) { 30 | #if DEBUG 31 | fatalError(message) 32 | #else 33 | print(message) 34 | #endif 35 | } 36 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/FloatingPointType+IdentifiableType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // FloatingPointType+IdentifiableType.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 7/4/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension FloatingPoint { 12 | typealias identity = Self 13 | 14 | public var identity: Self { 15 | return self 16 | } 17 | } 18 | 19 | extension Float : IdentifiableType { 20 | 21 | } 22 | 23 | extension Double : IdentifiableType { 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/IdentifiableType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // IdentifiableType.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/6/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol IdentifiableType { 12 | associatedtype Identity: Hashable 13 | 14 | var identity : Identity { get } 15 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/IdentifiableValue.swift: -------------------------------------------------------------------------------- 1 | // 2 | // IdentifiableValue.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/7/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct IdentifiableValue 12 | : IdentifiableType 13 | , Equatable 14 | , CustomStringConvertible 15 | , CustomDebugStringConvertible { 16 | public typealias Identity = Value 17 | 18 | public let value: Value 19 | 20 | public var identity : Identity { 21 | return value 22 | } 23 | 24 | public var description: String { 25 | return "\(value)" 26 | } 27 | 28 | public var debugDescription: String { 29 | return "\(value)" 30 | } 31 | } 32 | 33 | public func == (lhs: IdentifiableValue, rhs: IdentifiableValue) -> Bool { 34 | return lhs.value == rhs.value 35 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/IntegerType+IdentifiableType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // IntegerType+IdentifiableType.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 7/4/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension Integer { 12 | typealias identity = Self 13 | 14 | public var identity: Self { 15 | return self 16 | } 17 | } 18 | 19 | extension Int : IdentifiableType { 20 | 21 | } 22 | 23 | extension Int8 : IdentifiableType { 24 | 25 | } 26 | 27 | extension Int16 : IdentifiableType { 28 | 29 | } 30 | 31 | extension Int32 : IdentifiableType { 32 | 33 | } 34 | 35 | extension Int64 : IdentifiableType { 36 | 37 | } 38 | 39 | 40 | extension UInt : IdentifiableType { 41 | 42 | } 43 | 44 | extension UInt8 : IdentifiableType { 45 | 46 | } 47 | 48 | extension UInt16 : IdentifiableType { 49 | 50 | } 51 | 52 | extension UInt32 : IdentifiableType { 53 | 54 | } 55 | 56 | extension UInt64 : IdentifiableType { 57 | 58 | } 59 | 60 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/ItemPath.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ItemPath.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/9/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct ItemPath { 12 | public let sectionIndex: Int 13 | public let itemIndex: Int 14 | } 15 | 16 | extension ItemPath : Equatable { 17 | 18 | } 19 | 20 | public func == (lhs: ItemPath, rhs: ItemPath) -> Bool { 21 | return lhs.sectionIndex == rhs.sectionIndex && lhs.itemIndex == rhs.itemIndex 22 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/Optional+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Optional+Extensions.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 1/8/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension Optional { 12 | func unwrap() throws -> Wrapped { 13 | if let unwrapped = self { 14 | return unwrapped 15 | } 16 | else { 17 | rxDebugFatalError("Error during unwrapping optional") 18 | throw RxDataSourceError.unwrappingOptional 19 | } 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/SectionModel.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SectionModel.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 6/16/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public struct SectionModel 12 | : SectionModelType 13 | , CustomStringConvertible { 14 | public typealias Identity = Section 15 | public typealias Item = ItemType 16 | public var model: Section 17 | 18 | public var identity: Section { 19 | return model 20 | } 21 | 22 | public var items: [Item] 23 | 24 | public init(model: Section, items: [Item]) { 25 | self.model = model 26 | self.items = items 27 | } 28 | 29 | public var description: String { 30 | return "\(self.model) > \(items)" 31 | } 32 | } 33 | 34 | extension SectionModel { 35 | public init(original: SectionModel, items: [Item]) { 36 | self.model = original.model 37 | self.items = items 38 | } 39 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/SectionModelType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SectionModelType.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 6/28/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public protocol SectionModelType { 12 | associatedtype Item 13 | 14 | var items: [Item] { get } 15 | 16 | init(original: Self, items: [Item]) 17 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxDataSources/DataSources/String+IdentifiableType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // String+IdentifiableType.swift 3 | // RxDataSources 4 | // 5 | // Created by Krunoslav Zaher on 7/4/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension String : IdentifiableType { 12 | public typealias Identity = String 13 | 14 | public var identity: String { 15 | return self 16 | } 17 | } 18 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample-iOSTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample-iOSTests/Mocks/MockGitHubAPI.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MockGitHubAPI.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/29/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | 12 | class MockGitHubAPI : GitHubAPI { 13 | let _usernameAvailable: (String) -> Observable 14 | let _signup: (String, String) -> Observable 15 | 16 | init( 17 | usernameAvailable: @escaping (String) -> Observable = notImplemented(), 18 | signup: @escaping (String, String) -> Observable = notImplemented() 19 | ) { 20 | _usernameAvailable = usernameAvailable 21 | _signup = signup 22 | } 23 | 24 | func usernameAvailable(_ username: String) -> Observable { 25 | return _usernameAvailable(username) 26 | } 27 | 28 | func signup(_ username: String, password: String) -> Observable { 29 | return _signup(username, password) 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample-iOSTests/Mocks/MockWireframe.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MockWireframe.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/29/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | 12 | class MockWireframe : Wireframe { 13 | let _openURL: (URL) -> () 14 | let _promptFor: (String, Any, [Any]) -> Observable 15 | 16 | init(openURL: @escaping (URL) -> () = notImplementedSync(), 17 | promptFor: @escaping (String, Any, [Any]) -> Observable = notImplemented()) { 18 | _openURL = openURL 19 | _promptFor = promptFor 20 | } 21 | 22 | func open(url: URL) { 23 | _openURL(url) 24 | } 25 | 26 | func promptFor(_ message: String, cancelAction: Action, actions: [Action]) -> Observable { 27 | return _promptFor(message, cancelAction, actions.map { $0 as Any }).map { $0 as! Action } 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample-iOSTests/Mocks/NotImplementedStubs.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NotImplementedStubs.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/29/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | import RxTests 12 | 13 | // MARK: Generic support code 14 | 15 | 16 | // MARK: Not implemented stubs 17 | 18 | func notImplemented() -> (T1) -> Observable { 19 | return { _ in 20 | fatalError() 21 | return Observable.empty() 22 | } 23 | } 24 | 25 | func notImplementedSync() -> (T1) -> Void { 26 | return { _ in 27 | fatalError() 28 | } 29 | } 30 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample-iOSTests/Mocks/ValidationResult+Equatable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ValidationResult+Equatable.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/29/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | // MARK: Equatable 12 | 13 | extension ValidationResult : Equatable { 14 | 15 | } 16 | 17 | func == (lhs: ValidationResult, rhs: ValidationResult) -> Bool { 18 | switch (lhs, rhs) { 19 | case (.ok, .ok): 20 | return true 21 | case (.empty, .empty): 22 | return true 23 | case (.validating, .validating): 24 | return true 25 | case (.failed, .failed): 26 | return true 27 | default: 28 | return false 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample-iOSTests/RxTest.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTest.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 9/11/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import XCTest 11 | 12 | class RxTest : XCTestCase { 13 | 14 | } 15 | 16 | let testError = NSError(domain: "dummyError", code: -232, userInfo: nil) 17 | let testError1 = NSError(domain: "dummyError1", code: -233, userInfo: nil) 18 | let testError2 = NSError(domain: "dummyError2", code: -234, userInfo: nil) 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample-iOSUITests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Application+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIApplication+Extensions.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 8/20/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | import UIKit 11 | typealias OSApplication = UIApplication 12 | #elseif os(OSX) 13 | import Cocoa 14 | typealias OSApplication = NSApplication 15 | #endif 16 | 17 | extension OSApplication { 18 | static var isInUITest: Bool { 19 | return ProcessInfo.processInfo.environment["isUITest"] != nil; 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Examples/Calculator/CalculatorAction.swift: -------------------------------------------------------------------------------- 1 | // 2 | // CalculatorAction.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/21/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | enum Action { 12 | case clear 13 | case changeSign 14 | case percent 15 | case operation(Operator) 16 | case equal 17 | case addNumber(Character) 18 | case addDot 19 | } 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Examples/Calculator/Operation.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Operation.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/21/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | enum Operator { 12 | case addition 13 | case subtraction 14 | case multiplication 15 | case division 16 | } 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Examples/TableViewPartialUpdates/NumberCell.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NumberCell.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 7/2/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | class NumberCell : UICollectionViewCell { 13 | @IBOutlet var value: UILabel? 14 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Examples/TableViewPartialUpdates/NumberSectionView.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NumberSectionView.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 7/2/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import UIKit 11 | 12 | class NumberSectionView : UICollectionReusableView { 13 | @IBOutlet weak var value: UILabel? 14 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Examples/TableViewWithEditingCommands/UIImageView+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIImageView+Extensions.swift 3 | // RxExample 4 | // 5 | // Created by carlos on 28/5/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UIImageView { 12 | 13 | func makeRoundedCorners(_ radius: CGFloat) { 14 | self.layer.cornerRadius = radius 15 | self.layer.masksToBounds = true 16 | } 17 | 18 | func makeRoundedCorners() { 19 | self.makeRoundedCorners(self.frame.size.width / 2) 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Examples/TableViewWithEditingCommands/User.swift: -------------------------------------------------------------------------------- 1 | // 2 | // User.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/29/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct User: Equatable, CustomDebugStringConvertible { 12 | 13 | var firstName: String 14 | var lastName: String 15 | var imageURL: String 16 | 17 | init(firstName: String, lastName: String, imageURL: String) { 18 | self.firstName = firstName 19 | self.lastName = lastName 20 | self.imageURL = imageURL 21 | } 22 | } 23 | 24 | extension User { 25 | var debugDescription: String { 26 | return firstName + " " + lastName 27 | } 28 | } 29 | 30 | func ==(lhs: User, rhs:User) -> Bool { 31 | return lhs.firstName == rhs.firstName && 32 | lhs.lastName == rhs.lastName && 33 | lhs.imageURL == rhs.imageURL 34 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-40.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-40.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-40@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-40@2x-1.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-40@2x.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-60@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-60@2x-1.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-60@2x.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-60@3x.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-76.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-76.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-76@2x.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-Small.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-Small.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-Small@2x-1.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Icon-Small@3x.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Rx_Logo-iPad.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Rx_Logo-iPad.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Rx_Logo_M.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/AppIcon.appiconset/Rx_Logo_M.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/ReactiveExtensionsLogo.imageset/Contents.json: -------------------------------------------------------------------------------- 1 | { 2 | "images" : [ 3 | { 4 | "idiom" : "universal", 5 | "scale" : "1x" 6 | }, 7 | { 8 | "idiom" : "universal", 9 | "scale" : "2x", 10 | "filename" : "ReactiveExtensionsLogo.png" 11 | }, 12 | { 13 | "idiom" : "universal", 14 | "scale" : "3x", 15 | "filename" : "ReactiveExtensionsLogo-2.png" 16 | } 17 | ], 18 | "info" : { 19 | "version" : 1, 20 | "author" : "xcode" 21 | } 22 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/ReactiveExtensionsLogo.imageset/ReactiveExtensionsLogo-2.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/ReactiveExtensionsLogo.imageset/ReactiveExtensionsLogo-2.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/ReactiveExtensionsLogo.imageset/ReactiveExtensionsLogo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/RxExample/RxExample/Images.xcassets/ReactiveExtensionsLogo.imageset/ReactiveExtensionsLogo.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Info-OSX.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | NSMainStoryboardFile 24 | Main 25 | NSPrincipalClass 26 | NSApplication 27 | 28 | 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/OSX/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 5/19/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | @NSApplicationMain 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | 14 | func applicationDidFinishLaunching(aNotification: Notification) { 15 | // Insert code here to initialize your application 16 | } 17 | 18 | func applicationWillTerminate(aNotification: Notification) { 19 | // Insert code here to tear down your application 20 | } 21 | 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/RxExample.xcdatamodeld/.xccurrentversion: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | 6 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/RxExample.xcdatamodeld/RxExample.xcdatamodel/contents: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Services/DownloadableImage.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DownloadableImage.swift 3 | // RxExample 4 | // 5 | // Created by Vodovozov Gleb on 10/31/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if !RX_NO_MODULE 11 | import RxSwift 12 | #endif 13 | #if os(iOS) 14 | import UIKit 15 | #elseif os(OSX) 16 | import Cocoa 17 | #endif 18 | 19 | enum DownloadableImage{ 20 | case content(image:Image) 21 | case offlinePlaceholder 22 | 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Services/PseudoRandomGenerator.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PseudoRandomGenerator.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 6/28/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | 12 | // https://en.wikipedia.org/wiki/Random_number_generation 13 | class PseudoRandomGenerator { 14 | var m_w: UInt32 /* must not be zero, nor 0x464fffff */ 15 | var m_z: UInt32 /* must not be zero, nor 0x9068ffff */ 16 | 17 | init(_ m_w: UInt32, _ m_z: UInt32) { 18 | self.m_w = m_w 19 | self.m_z = m_z 20 | } 21 | 22 | func get_random() -> Int { 23 | m_z = 36969 &* (m_z & 65535) &+ (m_z >> 16); 24 | m_w = 18000 &* (m_w & 65535) &+ (m_w >> 16); 25 | let val = ((m_z << 16) &+ m_w) 26 | return Int(val % (1 << 30)) /* 32-bit result */ 27 | } 28 | } 29 | 30 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/Services/UIImage+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIImage+Extensions.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 11/1/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | #if os(iOS) 11 | import UIKit 12 | #endif 13 | 14 | extension Image { 15 | func forceLazyImageDecompression() -> Image { 16 | #if os(iOS) 17 | UIGraphicsBeginImageContext(CGSize(width: 1, height: 1)) 18 | self.draw(at: CGPoint.zero) 19 | UIGraphicsEndImageContext() 20 | #endif 21 | return self 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/String+URL.swift: -------------------------------------------------------------------------------- 1 | // 2 | // String+URL.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 12/28/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension String { 12 | var URLEscaped: String { 13 | return self.addingPercentEncoding(withAllowedCharacters: .urlHostAllowed) ?? "" 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/iOS/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // Example 4 | // 5 | // Created by Krunoslav Zaher on 2/21/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | @UIApplicationMain 12 | class AppDelegate: UIResponder, UIApplicationDelegate { 13 | 14 | var window: UIWindow? 15 | 16 | func applicationDidFinishLaunching(_ application: UIApplication) { 17 | if UIApplication.isInUITest { 18 | UIView.setAnimationsEnabled(false) 19 | } 20 | } 21 | } 22 | 23 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxExample/RxExample/iOS/UITableView+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITableView+Extensions.swift 3 | // RxExample 4 | // 5 | // Created by Krunoslav Zaher on 8/20/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import UIKit 10 | 11 | extension UITableView { 12 | func hideEmptyCells() { 13 | self.tableFooterView = UIView(frame: .zero) 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Cancelable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Cancelable.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 3/12/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Represents disposable resource with state tracking. 13 | */ 14 | public protocol Cancelable : Disposable { 15 | /** 16 | - returns: Was resource disposed. 17 | */ 18 | var isDisposed: Bool { get } 19 | } 20 | 21 | public extension Cancelable { 22 | 23 | @available(*, deprecated, renamed: "isDisposed") 24 | var disposed: Bool { 25 | return isDisposed 26 | } 27 | 28 | } 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Concurrency/LockOwnerType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // LockOwnerType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 10/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol LockOwnerType : class, Lock { 12 | var _lock: NSRecursiveLock { get } 13 | } 14 | 15 | extension LockOwnerType { 16 | func lock() { 17 | _lock.lock() 18 | } 19 | 20 | func unlock() { 21 | _lock.unlock() 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Concurrency/SynchronizedDisposeType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SynchronizedDisposeType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 10/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol SynchronizedDisposeType : class, Disposable, Lock { 12 | func _synchronized_dispose() 13 | } 14 | 15 | extension SynchronizedDisposeType { 16 | func synchronizedDispose() { 17 | lock(); defer { unlock() } 18 | _synchronized_dispose() 19 | } 20 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Concurrency/SynchronizedOnType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SynchronizedOnType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 10/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol SynchronizedOnType : class, ObserverType, Lock { 12 | func _synchronized_on(_ event: Event) 13 | } 14 | 15 | extension SynchronizedOnType { 16 | func synchronizedOn(_ event: Event) { 17 | lock(); defer { unlock() } 18 | _synchronized_on(event) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Concurrency/SynchronizedSubscribeType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SynchronizedSubscribeType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 10/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol SynchronizedSubscribeType : class, ObservableType, Lock { 12 | func _synchronized_subscribe(_ observer: O) -> Disposable where O.E == E 13 | } 14 | 15 | extension SynchronizedSubscribeType { 16 | func synchronizedSubscribe(_ observer: O) -> Disposable where O.E == E { 17 | lock(); defer { unlock() } 18 | return _synchronized_subscribe(observer) 19 | } 20 | } 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Concurrency/SynchronizedUnsubscribeType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SynchronizedUnsubscribeType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 10/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol SynchronizedUnsubscribeType : class { 12 | associatedtype DisposeKey 13 | 14 | func synchronizedUnsubscribe(_ disposeKey: DisposeKey) 15 | } 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/ConnectableObservableType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ConnectableObservableType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 3/1/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Represents an observable sequence wrapper that can be connected and disconnected from its underlying observable sequence. 13 | */ 14 | public protocol ConnectableObservableType : ObservableType { 15 | /** 16 | Connects the observable wrapper to its source. All subscribed observers will receive values from the underlying observable sequence as long as the connection is established. 17 | 18 | - returns: Disposable used to disconnect the observable wrapper from its source, causing subscribed observer to stop receiving values from the underlying observable sequence. 19 | */ 20 | func connect() -> Disposable 21 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/DataStructures/InfiniteSequence.swift: -------------------------------------------------------------------------------- 1 | // 2 | // InfiniteSequence.swift 3 | // RxSwift 4 | // 5 | // Created by Krunoslav Zaher on 6/13/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Sequence that repeats `repeatedValue` infinite number of times. 13 | */ 14 | struct InfiniteSequence : Sequence { 15 | typealias Element = E 16 | typealias Iterator = AnyIterator 17 | 18 | private let _repeatedValue: E 19 | 20 | init(repeatedValue: E) { 21 | _repeatedValue = repeatedValue 22 | } 23 | 24 | func makeIterator() -> Iterator { 25 | let repeatedValue = _repeatedValue 26 | return AnyIterator { 27 | return repeatedValue 28 | } 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Disposable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Disposable.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 2/8/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /// Respresents a disposable resource. 12 | public protocol Disposable { 13 | /// Dispose resource. 14 | func dispose() 15 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Disposables/DisposeBase.swift: -------------------------------------------------------------------------------- 1 | // 2 | // DisposeBase.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 4/4/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Base class for all disposables. 13 | */ 14 | public class DisposeBase { 15 | init() { 16 | #if TRACE_RESOURCES 17 | let _ = AtomicIncrement(&resourceCount) 18 | #endif 19 | } 20 | 21 | deinit { 22 | #if TRACE_RESOURCES 23 | let _ = AtomicDecrement(&resourceCount) 24 | #endif 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Disposables/NopDisposable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NopDisposable.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 2/15/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Represents a disposable that does nothing on disposal. 13 | 14 | Nop = No Operation 15 | */ 16 | public struct NopDisposable : Disposable { 17 | 18 | /** 19 | Singleton instance of `NopDisposable`. 20 | */ 21 | @available(*, deprecated, renamed: "Disposables.create()") 22 | public static let instance: Disposable = NopDisposable() 23 | 24 | init() { 25 | 26 | } 27 | 28 | /** 29 | Does nothing. 30 | */ 31 | public func dispose() { 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Disposables/StableCompositeDisposable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StableCompositeDisposable.swift 3 | // RxSwift 4 | // 5 | // Created by Krunoslav Zaher on 6/12/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | public final class StableCompositeDisposable { 12 | @available(*, deprecated, renamed: "Disposables.create") 13 | public static func create(_ disposable1: Disposable, _ disposable2: Disposable) -> Disposable { 14 | return Disposables.create(disposable1, disposable2) 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Disposables/SubscriptionDisposable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SubscriptionDisposable.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 10/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct SubscriptionDisposable : Disposable { 12 | private let _key: T.DisposeKey 13 | private weak var _owner: T? 14 | 15 | init(owner: T, key: T.DisposeKey) { 16 | _owner = owner 17 | _key = key 18 | } 19 | 20 | func dispose() { 21 | _owner?.synchronizedUnsubscribe(_key) 22 | } 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Extensions/String+Rx.swift: -------------------------------------------------------------------------------- 1 | // 2 | // String+Rx.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 12/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | extension String { 12 | /** 13 | This is needed because on Linux Swift doesn't have `rangeOfString(..., options: .BackwardsSearch)` 14 | */ 15 | func lastIndexOf(_ character: Character) -> Index? { 16 | var index = endIndex 17 | while index > startIndex { 18 | index = self.index(before: index) 19 | if self[index] == character { 20 | return index 21 | } 22 | } 23 | 24 | return nil 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.0.0-beta.2 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/ObservableConvertibleType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ObservableConvertibleType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 9/17/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Type that can be converted to observable sequence (`Observer`). 13 | */ 14 | public protocol ObservableConvertibleType { 15 | /** 16 | Type of elements in sequence. 17 | */ 18 | associatedtype E 19 | 20 | /** 21 | Converts `self` to `Observable` sequence. 22 | 23 | - returns: Observable sequence that represents `self`. 24 | */ 25 | func asObservable() -> Observable 26 | } 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Observables/Implementations/Empty.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Empty.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 8/30/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class Empty : Producer { 12 | override func subscribe(_ observer: O) -> Disposable where O.E == Element { 13 | observer.on(.completed) 14 | return Disposables.create() 15 | } 16 | } 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Observables/Implementations/Error.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Error.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 8/30/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class Error : Producer { 12 | private let _error: Swift.Error 13 | 14 | init(error: Swift.Error) { 15 | _error = error 16 | } 17 | 18 | override func subscribe(_ observer: O) -> Disposable where O.E == Element { 19 | observer.on(.error(_error)) 20 | return Disposables.create() 21 | } 22 | } 23 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Observables/Implementations/Never.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Never.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 8/30/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class Never : Producer { 12 | override func subscribe(_ observer: O) -> Disposable where O.E == Element { 13 | return Disposables.create() 14 | } 15 | } 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Observables/Implementations/StartWith.swift: -------------------------------------------------------------------------------- 1 | // 2 | // StartWith.swift 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 4/6/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class StartWith: Producer { 12 | let elements: [Element] 13 | let source: Observable 14 | 15 | init(source: Observable, elements: [Element]) { 16 | self.source = source 17 | self.elements = elements 18 | super.init() 19 | } 20 | 21 | override func run(_ observer: O, cancel: Cancelable) -> (sink: Disposable, subscription: Disposable) where O.E == Element { 22 | for e in elements { 23 | observer.on(.next(e)) 24 | } 25 | 26 | return (sink: Disposables.create(), subscription: source.subscribe(observer)) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Observers/AnonymousObserver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AnonymousObserver.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 2/8/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class AnonymousObserver : ObserverBase { 12 | typealias Element = ElementType 13 | 14 | typealias EventHandler = (Event) -> Void 15 | 16 | private let _eventHandler : EventHandler 17 | 18 | init(_ eventHandler: @escaping EventHandler) { 19 | #if TRACE_RESOURCES 20 | let _ = AtomicIncrement(&resourceCount) 21 | #endif 22 | _eventHandler = eventHandler 23 | } 24 | 25 | override func onCore(_ event: Event) { 26 | return _eventHandler(event) 27 | } 28 | 29 | #if TRACE_RESOURCES 30 | deinit { 31 | let _ = AtomicDecrement(&resourceCount) 32 | } 33 | #endif 34 | } 35 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Observers/ObserverBase.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ObserverBase.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 2/15/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | class ObserverBase : Disposable, ObserverType { 12 | typealias E = ElementType 13 | 14 | private var _isStopped: AtomicInt = 0 15 | 16 | func on(_ event: Event) { 17 | switch event { 18 | case .next: 19 | if _isStopped == 0 { 20 | onCore(event) 21 | } 22 | case .error, .completed: 23 | 24 | if !AtomicCompareAndSwap(0, 1, &_isStopped) { 25 | return 26 | } 27 | 28 | onCore(event) 29 | } 30 | } 31 | 32 | func onCore(_ event: Event) { 33 | abstractMethod() 34 | } 35 | 36 | func dispose() { 37 | _isStopped = 1 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/RxMutableBox.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxMutableBox.swift 3 | // RxSwift 4 | // 5 | // Created by Krunoslav Zaher on 5/22/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Creates mutable reference wrapper for any type. 13 | */ 14 | class RxMutableBox : CustomDebugStringConvertible { 15 | /** 16 | Wrapped value 17 | */ 18 | var value : T 19 | 20 | /** 21 | Creates reference wrapper for `value`. 22 | 23 | - parameter value: Value to wrap. 24 | */ 25 | init (_ value: T) { 26 | self.value = value 27 | } 28 | } 29 | 30 | extension RxMutableBox { 31 | /** 32 | - returns: Box description. 33 | */ 34 | var debugDescription: String { 35 | return "MutatingBox(\(self.value))" 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Schedulers/HistoricalScheduler.swift: -------------------------------------------------------------------------------- 1 | // 2 | // HistoricalScheduler.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 12/27/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Provides a virtual time scheduler that uses `NSDate` for absolute time and `NSTimeInterval` for relative time. 13 | */ 14 | public class HistoricalScheduler : VirtualTimeScheduler { 15 | 16 | /** 17 | Creates a new historical scheduler with initial clock value. 18 | 19 | - parameter initialClock: Initial value for virtual clock. 20 | */ 21 | public init(initialClock: RxTime = Date(timeIntervalSince1970: 0)) { 22 | super.init(initialClock: initialClock, converter: HistoricalSchedulerTimeConverter()) 23 | } 24 | 25 | } 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Schedulers/Internal/AnonymousInvocable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AnonymousInvocable.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 11/7/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct AnonymousInvocable : InvocableType { 12 | private let _action: () -> () 13 | 14 | init(_ action: @escaping () -> ()) { 15 | _action = action 16 | } 17 | 18 | func invoke() { 19 | _action() 20 | } 21 | } 22 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Schedulers/Internal/InvocableScheduledItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // InvocableScheduledItem.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 11/7/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct InvocableScheduledItem : InvocableType { 12 | 13 | let _invocable: I 14 | let _state: I.Value 15 | 16 | init(invocable: I, state: I.Value) { 17 | _invocable = invocable 18 | _state = state 19 | } 20 | 21 | func invoke() { 22 | _invocable.invoke(_state) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Schedulers/Internal/InvocableType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // InvocableType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 11/7/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol InvocableType { 12 | func invoke() 13 | } 14 | 15 | protocol InvocableWithValueType { 16 | associatedtype Value 17 | 18 | func invoke(_ value: Value) 19 | } 20 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Schedulers/Internal/ScheduledItem.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ScheduledItem.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 9/2/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct ScheduledItem 12 | : ScheduledItemType 13 | , InvocableType { 14 | typealias Action = (T) -> Disposable 15 | 16 | private let _action: Action 17 | private let _state: T 18 | 19 | private let _disposable = SingleAssignmentDisposable() 20 | 21 | var isDisposed: Bool { 22 | return _disposable.isDisposed 23 | } 24 | 25 | init(action: @escaping Action, state: T) { 26 | _action = action 27 | _state = state 28 | } 29 | 30 | func invoke() { 31 | _disposable.setDisposable(_action(_state)) 32 | } 33 | 34 | func dispose() { 35 | _disposable.dispose() 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Schedulers/Internal/ScheduledItemType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ScheduledItemType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 11/7/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | protocol ScheduledItemType 12 | : Cancelable 13 | , InvocableType { 14 | func invoke() 15 | } 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxSwift/Subjects/SubjectType.swift: -------------------------------------------------------------------------------- 1 | // 2 | // SubjectType.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 3/1/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Represents an object that is both an observable sequence as well as an observer. 13 | */ 14 | public protocol SubjectType : ObservableType { 15 | /** 16 | The type of the observer that represents this subject. 17 | 18 | Usually this type is type of subject itself, but it doesn't have to be. 19 | */ 20 | associatedtype SubjectObserverType : ObserverType 21 | 22 | /** 23 | Returns observer interface for subject. 24 | 25 | - returns: Observer interface for subject. 26 | */ 27 | func asObserver() -> SubjectObserverType 28 | 29 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | FMWK 17 | CFBundleShortVersionString 18 | 3.0.0-beta.2 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | $(CURRENT_PROJECT_VERSION) 23 | NSPrincipalClass 24 | 25 | 26 | 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxTests/RxTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // RxTests.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 12/19/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | /** 12 | Virtual time type. 13 | */ 14 | public typealias TestTime = Int 15 | 16 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/RxTests/TestableObserver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestableObserver.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 2/15/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | 12 | /** 13 | Observer that records events together with virtual time when they were received. 14 | */ 15 | public class TestableObserver 16 | : ObserverType { 17 | public typealias Element = ElementType 18 | 19 | fileprivate let _scheduler: TestScheduler 20 | 21 | /** 22 | Recorded events. 23 | */ 24 | public fileprivate(set) var events = [Recorded>]() 25 | 26 | init(scheduler: TestScheduler) { 27 | _scheduler = scheduler 28 | } 29 | 30 | /** 31 | Notify observer about sequence event. 32 | 33 | - parameter event: Event that occured. 34 | */ 35 | public func on(_ event: Event) { 36 | events.append(Recorded(time: _scheduler.clock, event: event)) 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/AnonymousObservable+Test.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/AnonymousObservable+Test.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/AssumptionsTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/AssumptionsTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/BackgroundThreadPrimitiveHotObservable.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/BackgroundThreadPrimitiveHotObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/BagTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/BagTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/BehaviorSubjectTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/BehaviorSubjectTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/CurrentThreadSchedulerTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/CurrentThreadSchedulerTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/DisposableTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/DisposableTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/ElementIndexPair.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/ElementIndexPair.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/EquatableArray.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/EquatableArray.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Foundation+Extensions.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/Tests/Foundation+Extensions.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/MainSchedulerTests.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/MainSchedulerTests.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/MainThreadPrimitiveHotObservable.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/MainThreadPrimitiveHotObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/MockDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/MockDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/MySubject.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/MySubject.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+AggregateTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+AggregateTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+BindingTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+BindingTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+BlockingTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+BlockingTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+ConcurrencyTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+ConcurrencyTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+CreationTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+CreationTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+Extensions.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Observable+Extensions.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+MultipleTest+CombineLatest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+MultipleTest+CombineLatest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+MultipleTest+Zip.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+MultipleTest+Zip.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+MultipleTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+MultipleTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+SingleTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+SingleTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+StandardSequenceOperatorsTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+StandardSequenceOperatorsTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+SubscriptionTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+SubscriptionTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable+TimeTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/Observable+TimeTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Observable.Extensions.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/Observable.Extensions.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/ObserverTests.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/ObserverTests.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/PrimitiveHotObservable.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/PrimitiveHotObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/PrimitiveMockObserver.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/PrimitiveMockObserver.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/PublishSubjectTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/PublishSubjectTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/QueueTests.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/QueueTests.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/Recorded+Timeless.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/Tests/Recorded+Timeless.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/ReplaySubjectTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/ReplaySubjectTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/RxMutableBox.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/RxMutableBox.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/RxTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/SubjectConcurrencyTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/SubjectConcurrencyTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/TestConnectableObservable.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/Mocks/TestConnectableObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/TestErrors.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/Tests/TestErrors.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/TestVirtualScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/TestImplementations/TestVirtualScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/VariableTest.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/RxSwiftTests/Tests/VariableTest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/AllTests/XCTest+AllTests.swift: -------------------------------------------------------------------------------- 1 | ../../Tests/Tests/XCTest+AllTests.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxBlocking/BlockingObservable+Operators.swift: -------------------------------------------------------------------------------- 1 | ../../RxBlocking/BlockingObservable+Operators.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxBlocking/BlockingObservable.swift: -------------------------------------------------------------------------------- 1 | ../../RxBlocking/BlockingObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxBlocking/ObservableConvertibleType+Blocking.swift: -------------------------------------------------------------------------------- 1 | ../../RxBlocking/ObservableConvertibleType+Blocking.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxBlocking/RunLoopLock.swift: -------------------------------------------------------------------------------- 1 | ../../RxBlocking/RunLoopLock.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxCocoa/RxCocoa.h: -------------------------------------------------------------------------------- 1 | ../../RxCocoa/RxCocoa.h -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/AddRef.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/AddRef.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Amb.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Amb.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/AnonymousDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/AnonymousDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/AnonymousInvocable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/Internal/AnonymousInvocable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/AnonymousObservable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/AnonymousObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/AnonymousObserver.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observers/AnonymousObserver.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/AnyObserver.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/AnyObserver.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/AsyncLock.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Concurrency/AsyncLock.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Bag.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/DataStructures/Bag.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/BehaviorSubject.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Subjects/BehaviorSubject.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/BinaryDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/BinaryDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/BooleanDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/BooleanDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Buffer.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Buffer.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Cancelable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Cancelable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Catch.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Catch.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/CombineLatest+CollectionType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/CombineLatest+CollectionType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/CombineLatest+arity.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/CombineLatest+arity.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/CombineLatest.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/CombineLatest.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/CompositeDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/CompositeDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Concat.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Concat.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ConcurrentDispatchQueueScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/ConcurrentDispatchQueueScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ConcurrentMainScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/ConcurrentMainScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ConnectableObservable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/ConnectableObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ConnectableObservableType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/ConnectableObservableType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/CurrentThreadScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/CurrentThreadScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Debug.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Debug.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Deferred.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Deferred.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/DelaySubscription.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/DelaySubscription.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/DispatchQueueSchedulerQOS.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/DispatchQueueSchedulerQOS.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Disposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/DisposeBag.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/DisposeBag.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/DisposeBase.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/DisposeBase.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/DistinctUntilChanged.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/DistinctUntilChanged.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Do.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Do.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ElementAt.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/ElementAt.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Empty.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Empty.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Error.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Error.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Errors.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Errors.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Event.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Event.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Filter.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Filter.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Generate.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Generate.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/HistoricalScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/HistoricalScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/HistoricalSchedulerTimeConverter.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/HistoricalSchedulerTimeConverter.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ImmediateScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/ImmediateScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ImmediateSchedulerType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/ImmediateSchedulerType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/InfiniteSequence.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/DataStructures/InfiniteSequence.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/InvocableScheduledItem.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/Internal/InvocableScheduledItem.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/InvocableType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/Internal/InvocableType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Just.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Just.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Lock.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Concurrency/Lock.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/LockOwnerType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Concurrency/LockOwnerType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/MainScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/MainScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Map.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Map.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Merge.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Merge.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Multicast.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Multicast.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/NAryDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/NAryDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Never.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Never.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/NopDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/NopDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Aggregate.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Aggregate.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Binding.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Binding.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Concurrency.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Concurrency.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Creation.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Creation.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Debug.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Debug.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Extensions.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observable+Extensions.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Multiple.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Multiple.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Single.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Single.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+StandardSequenceOperators.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+StandardSequenceOperators.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable+Time.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Observable+Time.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Observable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ObservableConvertibleType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/ObservableConvertibleType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ObservableType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/ObservableType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ObserveOn.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/ObserveOn.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ObserveOnSerialDispatchQueue.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/ObserveOnSerialDispatchQueue.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ObserverBase.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observers/ObserverBase.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ObserverType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/ObserverType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/OperationQueueScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/OperationQueueScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Platform.Darwin.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Platform/Platform.Darwin.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Platform.Linux.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Platform/Platform.Linux.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/PriorityQueue.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/DataStructures/PriorityQueue.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Producer.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Producer.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/PublishSubject.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Subjects/PublishSubject.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Queue.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/DataStructures/Queue.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Range.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Range.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/RecursiveScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/RecursiveScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Reduce.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Reduce.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/RefCount.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/RefCount.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/RefCountDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/RefCountDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Repeat.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Repeat.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ReplaySubject.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Subjects/ReplaySubject.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/RetryWhen.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/RetryWhen.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Rx.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Rx.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/RxMutableBox.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/RxMutableBox.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Sample.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Sample.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Scan.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Scan.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ScheduledDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/ScheduledDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ScheduledItem.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/Internal/ScheduledItem.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ScheduledItemType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/Internal/ScheduledItemType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SchedulerServices+Emulation.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/SchedulerServices+Emulation.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SchedulerType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/SchedulerType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Sequence.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Sequence.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SerialDispatchQueueScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/SerialDispatchQueueScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SerialDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/SerialDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ShareReplay1.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/ShareReplay1.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ShareReplay1WhileConnected.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/ShareReplay1WhileConnected.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SingleAssignmentDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/SingleAssignmentDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SingleAsync.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/SingleAsync.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Sink.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Sink.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Skip.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Skip.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SkipUntil.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/SkipUntil.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SkipWhile.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/SkipWhile.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/StableCompositeDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/StableCompositeDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/StartWith.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/StartWith.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/String+Rx.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Extensions/String+Rx.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SubjectType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Subjects/SubjectType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SubscribeOn.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/SubscribeOn.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SubscriptionDisposable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Disposables/SubscriptionDisposable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Switch.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Switch.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SynchronizedDisposeType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Concurrency/SynchronizedDisposeType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SynchronizedOnType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Concurrency/SynchronizedOnType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SynchronizedSubscribeType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Concurrency/SynchronizedSubscribeType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/SynchronizedUnsubscribeType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Concurrency/SynchronizedUnsubscribeType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/TailRecursiveSink.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observers/TailRecursiveSink.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Take.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Take.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/TakeLast.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/TakeLast.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/TakeUntil.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/TakeUntil.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/TakeWhile.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/TakeWhile.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Throttle.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Throttle.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Timeout.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Timeout.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Timer.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Timer.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/ToArray.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/ToArray.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Using.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Using.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Variable.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Subjects/Variable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/VirtualTimeConverterType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/VirtualTimeConverterType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/VirtualTimeScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Schedulers/VirtualTimeScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Window.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Window.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/WithLatestFrom.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/WithLatestFrom.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Zip+CollectionType.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Zip+CollectionType.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Zip+arity.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Zip+arity.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxSwift/Zip.swift: -------------------------------------------------------------------------------- 1 | ../../RxSwift/Observables/Implementations/Zip.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/Any+Equatable.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/Any+Equatable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/ColdObservable.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/ColdObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/Event+Equatable.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/Event+Equatable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/HotObservable.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/HotObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/Recorded.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/Recorded.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/RxTests.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/RxTests.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/Subscription.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/Subscription.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/TestScheduler.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/Schedulers/TestScheduler.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/TestSchedulerVirtualTimeConverter.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/Schedulers/TestSchedulerVirtualTimeConverter.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/TestableObservable.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/TestableObservable.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/TestableObserver.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/TestableObserver.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Sources/RxTests/XCTest+Rx.swift: -------------------------------------------------------------------------------- 1 | ../../RxTests/XCTest+Rx.swift -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/Foundation+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Foundation+Extensions.swift 3 | // Tests 4 | // 5 | // Created by Krunoslav Zaher on 12/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | func isMainThread() -> Bool { 12 | return Thread.current.isMainThread 13 | } 14 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleSignature 20 | ???? 21 | CFBundleVersion 22 | 1 23 | 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/Recorded+Timeless.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Recorded+Timeless.swift 3 | // Tests 4 | // 5 | // Created by Krunoslav Zaher on 12/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxTests 11 | import RxSwift 12 | 13 | func next(_ value: T) -> Recorded> { 14 | return Recorded(time: 0, event: .next(value)) 15 | } 16 | 17 | func completed() -> Recorded> { 18 | return Recorded(time: 0, event: .completed) 19 | } 20 | 21 | func error(_ error: Swift.Error) -> Recorded> { 22 | return Recorded(time: 0, event: .error(error)) 23 | } 24 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/Control+RxTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Control+RxTests.swift 3 | // RxTests 4 | // 5 | // Created by Krunoslav Zaher on 10/18/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxCocoa 11 | import RxSwift 12 | import XCTest 13 | 14 | class ControlTests : RxTest { 15 | 16 | } 17 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/Driver+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Driver+Extensions.swift 3 | // Tests 4 | // 5 | // Created by Krunoslav Zaher on 12/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxCocoa 11 | 12 | extension SharedSequence : Equatable { 13 | 14 | } 15 | 16 | public func == (lhs: SharedSequence, rhs: SharedSequence) -> Bool { 17 | return lhs.asObservable() === rhs.asObservable() 18 | } 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/NSControl+RxTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSControl+RxTests.swift 3 | // Tests 4 | // 5 | // Created by mrahmiao on 1/1/16. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | import RxCocoa 12 | import Cocoa 13 | import XCTest 14 | 15 | class NSControlTests : RxTest { 16 | } 17 | 18 | extension NSControlTests { 19 | func testEnabled_False() { 20 | let subject = NSButton(frame: CGRectMake(0, 0, 1, 1)) 21 | Observable.just(false).subscribe(subject.rx_enabled).dispose() 22 | 23 | XCTAssertTrue(subject.enabled == false) 24 | } 25 | 26 | func testEnabled_True() { 27 | let subject = NSButton(frame: CGRectMake(0, 0, 1, 1)) 28 | Observable.just(true).subscribe(subject.rx_enabled).dispose() 29 | 30 | XCTAssertTrue(subject.enabled == true) 31 | } 32 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/RxTests-OSX-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import "RXObjCRuntime+Testing.h" -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/RxTests-iOS-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import "RXObjCRuntime+Testing.h" -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/RxTests-tvOS-Bridging-Header.h: -------------------------------------------------------------------------------- 1 | // 2 | // Use this file to import your target's public headers that you would like to expose to Swift. 3 | // 4 | 5 | #import "RXObjCRuntime+Testing.h" -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/UINavigationItem+RxTests.swift.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UINavigationItem+RxTests.swift.swift 3 | // Rx 4 | // 5 | // Created by kumapo on 2016/05/11. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | import RxSwift 12 | import RxCocoa 13 | import UIKit 14 | import XCTest 15 | 16 | class UINavigationItemTests : RxTest { 17 | } 18 | 19 | extension UINavigationItemTests { 20 | func testTitle_Text() { 21 | let subject = UINavigationItem() 22 | Observable.just("Editing").subscribe(subject.rx.title).dispose() 23 | 24 | XCTAssertTrue(subject.title == "Editing") 25 | } 26 | 27 | func testTitle_Empty() { 28 | let subject = UINavigationItem() 29 | Observable.just(nil).subscribe(subject.rx.title).dispose() 30 | 31 | XCTAssertTrue(subject.title == nil) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/UIPageControl+RxTest.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIPageControl+RxTest.swift 3 | // Rx 4 | // 5 | // Created by Francesco Puntillo on 25/04/2016. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | 11 | import Foundation 12 | 13 | import RxSwift 14 | import RxCocoa 15 | import UIKit 16 | import XCTest 17 | 18 | class UIPageControlTest : RxTest { 19 | } 20 | 21 | extension UIPageControlTest { 22 | func testPageControl_CurrentPage() { 23 | let pageControl = UIPageControl(frame: CGRect.zero) 24 | pageControl.numberOfPages = 10 25 | Observable.just(5).bindTo(pageControl.rx.currentPage).dispose() 26 | XCTAssertTrue(pageControl.currentPage == 5) 27 | } 28 | } 29 | 30 | #endif 31 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/UIRefreshControl+RxTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIRefreshControl+RxTests.swift 3 | // RxTests 4 | // 5 | // Created by Yosuke Ishikawa on 1/31/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #if os(iOS) 10 | import Foundation 11 | 12 | import RxSwift 13 | import RxCocoa 14 | import UIKit 15 | import XCTest 16 | 17 | class UIRefreshControlTests : RxTest { 18 | } 19 | 20 | extension UIRefreshControlTests { 21 | func testRefreshing_True() { 22 | let subject = UIRefreshControl() 23 | Observable.just(true).subscribe(subject.rx.refreshing).dispose() 24 | 25 | XCTAssertTrue(subject.isRefreshing == true) 26 | } 27 | 28 | func testRefreshing_False() { 29 | let subject = UIRefreshControl() 30 | Observable.just(false).subscribe(subject.rx.refreshing).dispose() 31 | 32 | XCTAssertTrue(subject.isRefreshing == false) 33 | } 34 | } 35 | 36 | #endif 37 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/UITabBarItem+RxTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UITabBarItem+RxTests.swift 3 | // Rx 4 | // 5 | // Created by Mateusz Derks on 04/03/16. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | import RxSwift 12 | import RxCocoa 13 | import UIKit 14 | import XCTest 15 | 16 | class UITabBarItemTests : RxTest { 17 | } 18 | 19 | extension UITabBarItemTests { 20 | func testBadgetValue_Text() { 21 | let subject = UITabBarItem(tabBarSystemItem: .more, tag: 0) 22 | Observable.just("5").subscribe(subject.rx.badgeValue).dispose() 23 | 24 | XCTAssertTrue(subject.badgeValue == "5") 25 | } 26 | 27 | func testBadgetValue_Empty() { 28 | let subject = UITabBarItem(tabBarSystemItem: .more, tag: 0) 29 | Observable.just(nil).subscribe(subject.rx.badgeValue).dispose() 30 | 31 | XCTAssertTrue(subject.badgeValue == nil) 32 | } 33 | } 34 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxCocoaTests/UIViewControler+RxTests.swift: -------------------------------------------------------------------------------- 1 | // 2 | // UIViewControler+RxTests.swift 3 | // Rx 4 | // 5 | // Created by Kyle Fuller on 30/05/2016. 6 | // Copyright © 2016 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | import RxSwift 12 | import RxCocoa 13 | import UIKit 14 | import XCTest 15 | 16 | class UITViewControllerTests : RxTest { 17 | func testRxTitle() { 18 | let viewController = UIViewController() 19 | 20 | _ = Observable.just("title").bindTo(viewController.rx.title) 21 | 22 | XCTAssertEqual("title", viewController.title) 23 | } 24 | } 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/ElementIndexPair.swift: -------------------------------------------------------------------------------- 1 | // 2 | // ElementIndexPair.swift 3 | // RxTests 4 | // 5 | // Created by Krunoslav Zaher on 6/12/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct ElementIndexPair : Equatable { 12 | let element: E 13 | let index: I 14 | 15 | init(_ element: E, _ index: I) { 16 | self.element = element 17 | self.index = index 18 | } 19 | } 20 | 21 | func == (lhs: ElementIndexPair, rhs: ElementIndexPair) -> Bool { 22 | return lhs.element == rhs.element && lhs.index == rhs.index 23 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/EquatableArray.swift: -------------------------------------------------------------------------------- 1 | // 2 | // EquatableArray.swift 3 | // RxTests 4 | // 5 | // Created by Krunoslav Zaher on 10/15/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | struct EquatableArray : Equatable { 12 | let elements: [Element] 13 | init(_ elements: [Element]) { 14 | self.elements = elements 15 | } 16 | } 17 | 18 | func == (lhs: EquatableArray, rhs: EquatableArray) -> Bool { 19 | return lhs.elements == rhs.elements 20 | } 21 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/Mocks/BackgroundThreadPrimitiveHotObservable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // BackgroundThreadPrimitiveHotObservable.swift 3 | // RxTests 4 | // 5 | // Created by Krunoslav Zaher on 10/19/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | import XCTest 12 | 13 | class BackgroundThreadPrimitiveHotObservable : PrimitiveHotObservable { 14 | override func subscribe(_ observer: O) -> Disposable where O.E == E { 15 | XCTAssertTrue(!isMainThread()) 16 | return super.subscribe(observer) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/Mocks/MainThreadPrimitiveHotObservable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MainThreadPrimitiveHotObservable.swift 3 | // RxTests 4 | // 5 | // Created by Krunoslav Zaher on 10/14/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | import XCTest 12 | 13 | class MainThreadPrimitiveHotObservable : PrimitiveHotObservable { 14 | override func subscribe(_ observer: O) -> Disposable where O.E == E { 15 | XCTAssertTrue(isMainThread()) 16 | return super.subscribe(observer) 17 | } 18 | } 19 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/Mocks/MockDisposable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // MockDisposable.swift 3 | // RxTests 4 | // 5 | // Created by Yury Korolev on 10/17/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | import RxTests 12 | 13 | class MockDisposable : Disposable 14 | { 15 | var ticks = [Int]() 16 | private let _scheduler: TestScheduler 17 | 18 | init(scheduler: TestScheduler) { 19 | _scheduler = scheduler 20 | ticks.append(_scheduler.clock) 21 | } 22 | 23 | func dispose() { 24 | ticks.append(_scheduler.clock) 25 | } 26 | } 27 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/Mocks/Observable.Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Observable.Extensions.swift 3 | // Rx 4 | // 5 | // Created by Krunoslav Zaher on 3/14/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import RxSwift 10 | 11 | extension Observable : Equatable { 12 | 13 | } -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/Mocks/PrimitiveMockObserver.swift: -------------------------------------------------------------------------------- 1 | // 2 | // PrimitiveMockObserver.swift 3 | // RxTests 4 | // 5 | // Created by Krunoslav Zaher on 6/4/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | import RxTests 12 | 13 | class PrimitiveMockObserver : ObserverType { 14 | typealias Element = ElementType 15 | 16 | var events: [Recorded>] 17 | 18 | init() { 19 | self.events = [] 20 | } 21 | 22 | func on(_ event: Event) { 23 | events.append(Recorded(time: 0, event: event)) 24 | } 25 | } 26 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/Mocks/TestConnectableObservable.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestConnectableObservable.swift 3 | // RxSwift 4 | // 5 | // Created by Krunoslav Zaher on 4/19/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | 12 | class TestConnectableObservable : ConnectableObservableType where S.E == S.SubjectObserverType.E { 13 | typealias E = S.E 14 | 15 | let _o: ConnectableObservable 16 | 17 | init(o: Observable, s: S) { 18 | _o = o.multicast(s) 19 | } 20 | 21 | func connect() -> Disposable { 22 | return _o.connect() 23 | } 24 | 25 | func subscribe(_ observer: O) -> Disposable where O.E == E { 26 | return _o.subscribe(observer) 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/RxSwiftTests/TestImplementations/Observable+Extensions.swift: -------------------------------------------------------------------------------- 1 | // 2 | // Observable+Extensions.swift 3 | // RxTests 4 | // 5 | // Created by Krunoslav Zaher on 6/4/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | import RxSwift 11 | import RxTests 12 | 13 | public func == (lhs: Observable, rhs: Observable) -> Bool { 14 | return lhs === rhs 15 | } 16 | 17 | extension TestableObservable : Equatable { 18 | 19 | } 20 | 21 | public func == (lhs: TestableObservable, rhs: TestableObservable) -> Bool { 22 | return lhs === rhs 23 | } 24 | 25 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/Tests/TestErrors.swift: -------------------------------------------------------------------------------- 1 | // 2 | // TestErrors.swift 3 | // Tests 4 | // 5 | // Created by Krunoslav Zaher on 12/25/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | let testError = NSError(domain: "dummyError", code: -232, userInfo: nil) 12 | let testError1 = NSError(domain: "dummyError1", code: -233, userInfo: nil) 13 | let testError2 = NSError(domain: "dummyError2", code: -234, userInfo: nil) 14 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/assets/CNAME.txt: -------------------------------------------------------------------------------- 1 | reactivex.io 2 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/assets/Rx_Logo_M.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/Carthage/Checkouts/RxSwift/assets/Rx_Logo_M.png -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/scripts/release-prep.sh: -------------------------------------------------------------------------------- 1 | . scripts/common.sh 2 | 3 | # run tests 4 | . scripts/pre-release-tests.sh 5 | 6 | # update jazzy documentation config 7 | printf "${GREEN}Updating .jazzy.yml${RESET}\n" 8 | ./scripts/update-jazzy-config.rb 9 | exitIfLastStatusWasUnsuccessful 10 | printf "${GREEN}Successfully updated .jazzy.yml${RESET}\n" 11 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/scripts/test-linux.sh: -------------------------------------------------------------------------------- 1 | set -e 2 | 3 | CONFIGURATIONS=(debug release) 4 | 5 | for configuration in ${CONFIGURATIONS[@]} 6 | do 7 | swift build -c ${configuration} && .build/${configuration}/AllTests 8 | done 9 | 10 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/scripts/update-jazzy-config.rb: -------------------------------------------------------------------------------- 1 | #!/usr/bin/env ruby 2 | 3 | require 'yaml' 4 | 5 | jazzy_dep = Gem::Dependency.new('jazzy') 6 | found_jazzy = jazzy_dep.matching_specs 7 | if found_jazzy.empty? 8 | Kernel.abort('jazzy gem not found. Please install it and then try again.') 9 | end 10 | 11 | included_directories = %w(RxSwift RxCocoa) 12 | 13 | files_and_directories = included_directories.collect do |directory| 14 | Dir.glob("#{directory}/**/*") 15 | end.flatten 16 | 17 | swift_files = files_and_directories.select { |file| file =~ /.*\.swift$/ } 18 | 19 | directory_and_name = swift_files.map do |file| 20 | { File.dirname(file) => File.basename(file, '.swift') } 21 | end 22 | 23 | categories = directory_and_name.flat_map(&:entries) 24 | .group_by(&:first) 25 | .map { |k,v| { 'name' => k, 'children' => v.map(&:last) } } 26 | 27 | config = { 'custom_categories' => categories } 28 | 29 | File.open('.jazzy.yml','w') do |h| 30 | h.write config.to_yaml 31 | end 32 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/scripts/update-jazzy-docs.sh: -------------------------------------------------------------------------------- 1 | . scripts/common.sh 2 | 3 | function updateDocs() { 4 | WORKSPACE=$1 5 | SCHEME=$2 6 | CONFIGURATION=$3 7 | SIMULATOR=$4 8 | MODULE=$5 9 | 10 | ensure_simulator_available "${SIMULATOR}" 11 | SIMULATOR_GUID=`simulator_ids "${SIMULATOR}"` 12 | DESTINATION='id='$SIMULATOR_GUID'' 13 | 14 | set -x 15 | killall Simulator || true 16 | jazzy --config .jazzy.yml -m "${MODULE}" -x -workspace,"${WORKSPACE}",-scheme,"${SCHEME}",-configuration,"${CONFIGURATION}",-derivedDataPath,"${BUILD_DIRECTORY}",-destination,"$DESTINATION" 17 | set +x 18 | } 19 | 20 | ./scripts/update-jazzy-config.rb 21 | 22 | updateDocs Rx.xcworkspace "RxExample-iOS" "Release" $DEFAULT_IOS9_SIMULATOR "RxSwift" 23 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/scripts/validate-markdown.sh: -------------------------------------------------------------------------------- 1 | remark -u remark-slug -u remark-validate-links ./*.md 2 | remark -u remark-slug -u remark-validate-links ./**/*.md 3 | -------------------------------------------------------------------------------- /Carthage/Checkouts/RxSwift/scripts/validate-playgrounds.sh: -------------------------------------------------------------------------------- 1 | . scripts/common.sh 2 | 3 | CONFIGURATIONS=(Release) 4 | 5 | # make sure osx builds 6 | for scheme in "RxSwift-OSX" 7 | do 8 | for configuration in ${CONFIGURATIONS[@]} 9 | do 10 | PAGES_PATH=${BUILD_DIRECTORY}/Build/Products/${configuration}/all-playground-pages.swift 11 | rx ${scheme} ${configuration} "" build 12 | cat Rx.playground/Sources/*.swift Rx.playground/Pages/**/*.swift > ${PAGES_PATH} 13 | swift -v -D NOT_IN_PLAYGROUND -target x86_64-apple-macosx10.10 -F ${BUILD_DIRECTORY}/Build/Products/${configuration} ${PAGES_PATH} 14 | done 15 | done 16 | 17 | -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/RxCocoa: -------------------------------------------------------------------------------- 1 | Versions/Current/RxCocoa -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Headers/RxCocoa.h: -------------------------------------------------------------------------------- 1 | // 2 | // RxCocoa.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 2/21/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | #import "_RX.h" 11 | #import "_RXDelegateProxy.h" 12 | #import "_RXKVOObserver.h" 13 | #import "_RXObjCRuntime.h" 14 | 15 | //! Project version number for RxCocoa. 16 | FOUNDATION_EXPORT double RxCocoaVersionNumber; 17 | 18 | //! Project version string for RxCocoa. 19 | FOUNDATION_EXPORT const unsigned char RxCocoaVersionString[]; -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Headers/_RXDelegateProxy.h: -------------------------------------------------------------------------------- 1 | // 2 | // _RXDelegateProxy.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/4/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | NS_ASSUME_NONNULL_BEGIN 12 | 13 | @interface _RXDelegateProxy : NSObject 14 | 15 | @property (nonatomic, weak, readonly) id _forwardToDelegate; 16 | 17 | -(void)_setForwardToDelegate:(id __nullable)forwardToDelegate retainDelegate:(BOOL)retainDelegate; 18 | 19 | -(BOOL)hasWiredImplementationForSelector:(SEL)selector; 20 | 21 | -(void)_sentMessage:(SEL)selector withArguments:(NSArray*)arguments; 22 | -(void)_methodInvoked:(SEL)selector withArguments:(NSArray*)arguments; 23 | 24 | @end 25 | 26 | NS_ASSUME_NONNULL_END 27 | -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Headers/_RXKVOObserver.h: -------------------------------------------------------------------------------- 1 | // 2 | // _RXKVOObserver.h 3 | // RxCocoa 4 | // 5 | // Created by Krunoslav Zaher on 7/11/15. 6 | // Copyright © 2015 Krunoslav Zaher. All rights reserved. 7 | // 8 | 9 | #import 10 | 11 | /** 12 | ################################################################################ 13 | This file is part of RX private API 14 | ################################################################################ 15 | */ 16 | 17 | // Exists because if written in Swift, reading unowned is disabled during dealloc process 18 | @interface _RXKVOObserver : NSObject 19 | 20 | -(instancetype)initWithTarget:(id)target 21 | retainTarget:(BOOL)retainTarget 22 | keyPath:(NSString*)keyPath 23 | options:(NSKeyValueObservingOptions)options 24 | callback:(void (^)(id))callback; 25 | 26 | -(void)dispose; 27 | 28 | @end 29 | -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Modules/RxCocoa.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxCocoa { 2 | umbrella header "RxCocoa.h" 3 | 4 | export * 5 | module * { export * } 6 | } 7 | 8 | module RxCocoa.Swift { 9 | header "RxCocoa-Swift.h" 10 | } 11 | -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/RxCocoa: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/A/RxCocoa -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxCocoa.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Headers: -------------------------------------------------------------------------------- 1 | Versions/Current/Headers -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Resources: -------------------------------------------------------------------------------- 1 | Versions/Current/Resources -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/RxSwift: -------------------------------------------------------------------------------- 1 | Versions/Current/RxSwift -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftdoc: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftdoc -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftmodule: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/A/Modules/RxSwift.swiftmodule/x86_64.swiftmodule -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/A/Modules/module.modulemap: -------------------------------------------------------------------------------- 1 | framework module RxSwift { 2 | header "RxSwift-Swift.h" 3 | } 4 | -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/A/RxSwift: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/A/RxSwift -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/RxSwift.framework/Versions/Current: -------------------------------------------------------------------------------- 1 | A -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftAppKit.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftAppKit.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCore.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCore.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCoreData.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCoreData.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCoreGraphics.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCoreGraphics.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCoreImage.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftCoreImage.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftDarwin.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftDarwin.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftDispatch.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftDispatch.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftFoundation.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftFoundation.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftIOKit.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftIOKit.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftObjectiveC.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftObjectiveC.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftXPC.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftXPC.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Frameworks/libswiftos.dylib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Frameworks/libswiftos.dylib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/MacOS/ModelGenerator: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/MacOS/ModelGenerator -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/PkgInfo: -------------------------------------------------------------------------------- 1 | APPL???? -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/Info.plist: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/Info.plist -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/MainMenu.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/MainMenu.nib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/NSWindowController-B8D-0N-5wS.nib -------------------------------------------------------------------------------- /MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/MacApp/ModelGenerator.app/Contents/Resources/Base.lproj/Main.storyboardc/XfG-lQ-9wD-view-m2S-Jp-Qdl.nib -------------------------------------------------------------------------------- /ModelGenerator.xcodeproj/project.xcworkspace/contents.xcworkspacedata: -------------------------------------------------------------------------------- 1 | 2 | 4 | 6 | 7 | 8 | -------------------------------------------------------------------------------- /ModelGenerator.xcodeproj/project.xcworkspace/xcuserdata/Sheepy.xcuserdatad/UserInterfaceState.xcuserstate: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/ModelGenerator.xcodeproj/project.xcworkspace/xcuserdata/Sheepy.xcuserdatad/UserInterfaceState.xcuserstate -------------------------------------------------------------------------------- /ModelGenerator.xcodeproj/xcuserdata/Sheepy.xcuserdatad/xcdebugger/Breakpoints_v2.xcbkptlist: -------------------------------------------------------------------------------- 1 | 2 | 5 | 6 | -------------------------------------------------------------------------------- /ModelGenerator.xcodeproj/xcuserdata/Sheepy.xcuserdatad/xcschemes/xcschememanagement.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | SchemeUserState 6 | 7 | ModelGenerator.xcscheme 8 | 9 | orderHint 10 | 0 11 | 12 | 13 | SuppressBuildableAutocreation 14 | 15 | 208BAC5F1DA4B63C009BCCDA 16 | 17 | primary 18 | 19 | 20 | 208BAC701DA4B63C009BCCDA 21 | 22 | primary 23 | 24 | 25 | 26 | 27 | 28 | -------------------------------------------------------------------------------- /ModelGenerator/AppDelegate.swift: -------------------------------------------------------------------------------- 1 | // 2 | // AppDelegate.swift 3 | // ModelGenerator 4 | // 5 | // Created by 杨洋 on 10/5/16. 6 | // Copyright © 2016 Sheepy. All rights reserved. 7 | // 8 | 9 | import Cocoa 10 | 11 | @NSApplicationMain 12 | class AppDelegate: NSObject, NSApplicationDelegate { 13 | 14 | 15 | 16 | func applicationDidFinishLaunching(_ aNotification: Notification) { 17 | // Insert code here to initialize your application 18 | } 19 | 20 | func applicationWillTerminate(_ aNotification: Notification) { 21 | // Insert code here to tear down your application 22 | } 23 | 24 | 25 | } 26 | 27 | -------------------------------------------------------------------------------- /ModelGenerator/NSNumberExtension.swift: -------------------------------------------------------------------------------- 1 | // 2 | // NSNumberExtension.swift 3 | // ModelGenerator 4 | // 5 | // Created by 杨洋 on 10/11/16. 6 | // Copyright © 2016 Sheepy. All rights reserved. 7 | // 8 | 9 | import Foundation 10 | 11 | private let trueNumber = NSNumber(value: true) 12 | private let falseNumber = NSNumber(value: false) 13 | private let trueObjCType = String(cString: trueNumber.objCType) 14 | private let falseObjCType = String(cString: falseNumber.objCType) 15 | 16 | extension NSNumber { 17 | var isBool:Bool { 18 | get { 19 | let objCType = String(cString: self.objCType) 20 | if (self.compare(trueNumber) == .orderedSame && objCType == trueObjCType) 21 | || (self.compare(falseNumber) == .orderedSame && objCType == falseObjCType) { 22 | return true 23 | } else { 24 | return false 25 | } 26 | } 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /ModelGeneratorTests/Info.plist: -------------------------------------------------------------------------------- 1 | 2 | 3 | 4 | 5 | CFBundleDevelopmentRegion 6 | en 7 | CFBundleExecutable 8 | $(EXECUTABLE_NAME) 9 | CFBundleIdentifier 10 | $(PRODUCT_BUNDLE_IDENTIFIER) 11 | CFBundleInfoDictionaryVersion 12 | 6.0 13 | CFBundleName 14 | $(PRODUCT_NAME) 15 | CFBundlePackageType 16 | BNDL 17 | CFBundleShortVersionString 18 | 1.0 19 | CFBundleVersion 20 | 1 21 | 22 | 23 | -------------------------------------------------------------------------------- /README.md: -------------------------------------------------------------------------------- 1 | # ModelGenerator 2 | Mac App that helps you to convert JSON to Mappable model. 3 | 4 | ## Screenshot 5 | ![GitHub API](https://github.com/sheepy1/ModelGenerator/raw/master/screenshot.png) 6 | 7 | ## Usage 8 | - Open the ModelGenerator in MacApp directory. 9 | - Input model name and JSON. 10 | - Copy and paste. 11 | 12 | ## 中文介绍和源码解析 13 | [试水 Mac 开发 —— 代码生成器](http://www.jianshu.com/p/f07560f13515) 14 | 15 | ## Requirements 16 | Xcode 8 | macOS 10.11 17 | 18 | ## License 19 | ModelGenerator is available under the MIT License. 20 | 21 | -------------------------------------------------------------------------------- /screenshot.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/sheepy1/ModelGenerator/d97377d5b954505d338658a10c0670882e79e3ea/screenshot.png --------------------------------------------------------------------------------