{"id":19313650,"url":"https://github.com/geektree0101/rxascontrolevent","last_synced_at":"2026-05-14T13:31:10.827Z","repository":{"id":62453067,"uuid":"108581278","full_name":"GeekTree0101/RxASControlEvent","owner":"GeekTree0101","description":"Texture(Async Display Kit) Control Event Reactive Wrapper","archived":false,"fork":false,"pushed_at":"2017-10-27T19:11:04.000Z","size":19,"stargazers_count":4,"open_issues_count":1,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-02-07T02:46:27.049Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/GeekTree0101.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":"2017-10-27T18:32:44.000Z","updated_at":"2019-04-03T07:12:32.000Z","dependencies_parsed_at":"2022-11-01T23:46:37.430Z","dependency_job_id":null,"html_url":"https://github.com/GeekTree0101/RxASControlEvent","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FRxASControlEvent","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FRxASControlEvent/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FRxASControlEvent/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/GeekTree0101%2FRxASControlEvent/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/GeekTree0101","download_url":"https://codeload.github.com/GeekTree0101/RxASControlEvent/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":240415272,"owners_count":19797603,"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":[],"created_at":"2024-11-10T00:40:35.072Z","updated_at":"2026-05-14T13:31:10.160Z","avatar_url":"https://github.com/GeekTree0101.png","language":"Swift","funding_links":[],"categories":[],"sub_categories":[],"readme":"# RxASControlEvent\n\n[![CI Status](http://img.shields.io/travis/Geektree0101/RxASControlEvent.svg?style=flat)](https://travis-ci.org/Geektree0101/RxASControlEvent)\n[![Version](https://img.shields.io/cocoapods/v/RxASControlEvent.svg?style=flat)](http://cocoapods.org/pods/RxASControlEvent)\n[![License](https://img.shields.io/cocoapods/l/RxASControlEvent.svg?style=flat)](http://cocoapods.org/pods/RxASControlEvent)\n[![Platform](https://img.shields.io/cocoapods/p/RxASControlEvent.svg?style=flat)](http://cocoapods.org/pods/RxASControlEvent)\n\n## Example\n\nTo run the example project, clone the repo, and run `pod install` from the Example directory first.\n\n```swift\n    let button = ASButtonNode()\n\n    button.rx.event(.touchUpInside).subscribe(onNext: { _ in\n        print(\"Touch up inside\")\n    }).disposed(by: disposeBag)\n        \n    button.rx.event(.touchUpOutside).subscribe(onNext: { _ in\n        print(\"Touch up outside\")\n    }).disposed(by: disposeBag)\n\n    button.rx.event(TOUCH_EVENT_TYPE).subscribe(onNext: { BUTTON_NODE in\n        // TODO:\n    }).disposed(by: disposeBag)\n\n    let text = ASTextNode()\n\n    text.rx.event(.allEvents).subscribe(onNext: { _ in\n        print(\"Also, TextNode can do it!\")\n    }).disposed(by: disposeBag)\n```\n\nBUTTON_NODE is ASButtonNode\n\nTOUCH_EVENT_TYPE\n```objc\n        typedef NS_OPTIONS(NSUInteger, ASControlNodeEvent)\n        {\n            /** A touch-down event in the control node. */\n            ASControlNodeEventTouchDown         = 1 \u003c\u003c 0,\n            /** A repeated touch-down event in the control node; for this event the value of the UITouch tapCount method is greater than one. */\n            ASControlNodeEventTouchDownRepeat   = 1 \u003c\u003c 1,\n            /** An event where a finger is dragged inside the bounds of the control node. */\n            ASControlNodeEventTouchDragInside   = 1 \u003c\u003c 2,\n            /** An event where a finger is dragged just outside the bounds of the control. */\n            ASControlNodeEventTouchDragOutside  = 1 \u003c\u003c 3,\n            /** A touch-up event in the control node where the finger is inside the bounds of the node. */\n            ASControlNodeEventTouchUpInside     = 1 \u003c\u003c 4,\n            /** A touch-up event in the control node where the finger is outside the bounds of the node. */\n            ASControlNodeEventTouchUpOutside    = 1 \u003c\u003c 5,\n            /** A system event canceling the current touches for the control node. */\n            ASControlNodeEventTouchCancel       = 1 \u003c\u003c 6,\n            /** A system event triggered when controls like switches, slides, etc change state. */\n            ASControlNodeEventValueChanged      = 1 \u003c\u003c 12,\n            /** A system event when the Play/Pause button on the Apple TV remote is pressed. */\n            ASControlNodeEventPrimaryActionTriggered = 1 \u003c\u003c 13,\n            \n            /** All events, including system events. */\n            ASControlNodeEventAllEvents         = 0xFFFFFFFF\n        };\n```\n\n## Requirements\n\n## Installation\n\nRxASControlEvent is available through [CocoaPods](http://cocoapods.org). To install\nit, simply add the following line to your Podfile:\n\n```ruby\npod 'RxASControlEvent'\n```\n\n## Author\n\nGeektree0101, h2s1880@gmail.com\n\n## License\n\nRxASControlEvent is available under the MIT license. See the LICENSE file for more info.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeektree0101%2Frxascontrolevent","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fgeektree0101%2Frxascontrolevent","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fgeektree0101%2Frxascontrolevent/lists"}