SCNBook-code
SCNBook-code copied to clipboard
Swift Versions of the Sample Code
It would be nice to have the sample code available in both Objective-C and Swift.
Some early chapters could be small enough that their Swift equivalents would be only a playground.
Agreed, this would be very useful
I've gone through the book until the custom shaders chapter and rewrote the examples in Swift (probably sub par quality). I was planning to go through that last one tomorrow. But until then here is the code I have: http://dudrenov.com/3DGraphicsWithSceneKit.zip maybe it can be a starting point for a cleaner version. Note: some assets were linked directly from the book sample code assets, so the paths to those probably have to be fixed before compiling.