Code sharing between iOS and watchOS

What's the recommended pattern for sharing a complex SpriteKit game scene (and basic game code) between iOS and watchOS targets without code duplication, given the platform differences in input and rendering?

Code sharing between iOS and watchOS
 
 
Q