RxSpriteKit | : space_invader : Reactive Extensions for SpriteKit | iOS library
kandi X-RAY | RxSpriteKit Summary
kandi X-RAY | RxSpriteKit Summary
React extensions for SpriteKit :space_invader:.
Support
Quality
Security
License
Reuse
Top functions reviewed by kandi - BETA
Currently covering the most popular Java, JavaScript and Python libraries. See a Sample of RxSpriteKit
RxSpriteKit Key Features
RxSpriteKit Examples and Code Snippets
Community Discussions
Trending Discussions on RxSpriteKit
QUESTION
I need some help with DelegateProxy
implementation. Specifically, what is the proper way of implementing it when the delegate field has different name than simply delegate
? Such as in SKPhysicsContactDelegate
it is called contactDelegate
. I tried defining a computed value delegate
, but it did not do the trick - https://github.com/maxvol/RxSpriteKit/blob/master/Proxy/RxSKPhysicsContactDelegateProxy.swift
It fails with "DelegateProxy has no factory of . Implement DelegateProxy subclass for first."
Perhaps it is not even related to the delegate field name, but this is the only difference with properly working proxies I could find.
UPDATE: Ha! I just noticed that error message says PKPhysicsWorld
, not SKPhysicsWorld
. So my hypothesis is that it has something to do with the fact that object
in DelegateProxyFactory.createProxy
is a PKPhysicsWorld
instead of SKPhysicsWorld
and _factories[ObjectIdentifier(mirror.subjectType)]
returns nil
.
ANSWER
Answered 2019-Jan-21 at 16:16The reason you are getting that error is because your registerKnownImplementations()
function isn't getting run.
The following gist should work: https://gist.github.com/dtartaglia/9f1f937628504ca56dbb1aac7d91df2b
The code is also below but the gist can be kept up to date:
Community Discussions, Code Snippets contain sources that include Stack Exchange Network
Vulnerabilities
No vulnerabilities reported
Install RxSpriteKit
Support
Reuse Trending Solutions
Find, review, and download reusable Libraries, Code Snippets, Cloud APIs from over 650 million Knowledge Items
Find more librariesStay Updated
Subscribe to our newsletter for trending solutions and developer bootcamps
Share this Page