{"id":13719363,"url":"https://github.com/giginet/RxSpriteKit","last_synced_at":"2025-05-07T11:31:31.719Z","repository":{"id":62453208,"uuid":"56367727","full_name":"giginet/RxSpriteKit","owner":"giginet","description":":space_invader: Reactive Extensions for SpriteKit","archived":false,"fork":false,"pushed_at":"2020-01-30T14:26:13.000Z","size":151,"stargazers_count":131,"open_issues_count":0,"forks_count":4,"subscribers_count":4,"default_branch":"master","last_synced_at":"2025-04-30T21:18:16.702Z","etag":null,"topics":["carthage","rxswift","spritekit"],"latest_commit_sha":null,"homepage":"","language":"Swift","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/giginet.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2016-04-16T05:42:02.000Z","updated_at":"2024-06-16T08:51:31.000Z","dependencies_parsed_at":"2022-11-01T23:46:41.818Z","dependency_job_id":null,"html_url":"https://github.com/giginet/RxSpriteKit","commit_stats":null,"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2FRxSpriteKit","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2FRxSpriteKit/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2FRxSpriteKit/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/giginet%2FRxSpriteKit/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/giginet","download_url":"https://codeload.github.com/giginet/RxSpriteKit/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252729526,"owners_count":21795445,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["carthage","rxswift","spritekit"],"created_at":"2024-08-03T01:00:47.215Z","updated_at":"2025-05-07T11:31:30.998Z","avatar_url":"https://github.com/giginet.png","language":"Swift","funding_links":[],"categories":["Libraries"],"sub_categories":[],"readme":"# RxSpriteKit\n\n[![Build Status](https://github.com/giginet/RxSpriteKit/workflows/RxSpriteKit/badge.svg)](https://github.com/giginet/RxSpriteKit/actions?query=workflow%3ARxSpriteKit)\n[![Language](https://img.shields.io/badge/language-Swift%205.1-orange.svg)](https://swift.org)\n[![Carthage compatible](https://img.shields.io/badge/Carthage-compatible-4BC51D.svg?style=flat)](https://github.com/Carthage/Carthage)\n[![CocoaPods Compatible](https://img.shields.io/cocoapods/v/RxSpriteKit.svg)](http://cocoadocs.org/docsets/RxSpriteKit)\n[![Platform](https://img.shields.io/cocoapods/p/RxSpriteKit.svg?style=flat)](http://cocoadocs.org/docsets/RxSpriteKit)\n[![License](https://cocoapod-badges.herokuapp.com/l/RxSpriteKit/badge.svg)](https://github.com/cookpad/RxSpriteKit/blob/master/LICENSE)\n\nReact extensions for SpriteKit :space_invader:\n\n# Installation\n\n## Carthage\n\n```\ngithub \"giginet/RxSpriteKit\"\n```\n\n## CocoaPods\n\n```ruby\nuse_framework!\n\npod \"RxSpriteKit\"\n```\n\n# Usage\n\nSee `RxSpriteKitDemo` for detail.\n\n```swift\nimport SpriteKit\nimport RxSpriteKit\nimport RxSwift\nimport RxCocoa\n\nclass GameScene: SKScene {\n    private let disposeBag = DisposeBag()\n    private var label: SKLabelNode!\n    private let frameRelay = PublishRelay\u003cInt\u003e()\n\n    override func sceneDidLoad() {\n        super.sceneDidLoad()\n\n        guard let label = childNode(withName: \"//helloLabel\") as? SKLabelNode else {\n            fatalError(\"Label is not defined\")\n        }\n        self.label = label\n        rx.update\n            .scan(0, accumulator: { frameCount, _ in frameCount + 1 })\n            .bind(to: frameRelay)\n            .disposed(by: disposeBag)\n        frameRelay\n            .map { CGFloat($0) * 0.01 }\n            .bind(to: label.rx.zRotation)\n            .disposed(by: disposeBag)\n        frameRelay\n            .map { CGPoint(x: 0, y: $0) }\n            .bind(to: label.rx.position)\n            .disposed(by: disposeBag)\n        frameRelay\n            .map { String(describing: $0) }\n            .bind(to: label.rx.text)\n            .disposed(by: disposeBag)\n    }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiginet%2FRxSpriteKit","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgiginet%2FRxSpriteKit","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgiginet%2FRxSpriteKit/lists"}