SCNBook-code icon indicating copy to clipboard operation
SCNBook-code copied to clipboard

Swift Versions of the Sample Code

Open d-ronnqvist opened this issue 10 years ago • 3 comments

It would be nice to have the sample code available in both Objective-C and Swift.

d-ronnqvist avatar Dec 11 '14 21:12 d-ronnqvist

Some early chapters could be small enough that their Swift equivalents would be only a playground.

d-ronnqvist avatar Dec 11 '14 21:12 d-ronnqvist

Agreed, this would be very useful

fluidpixel avatar Jan 05 '15 19:01 fluidpixel

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.

dudrenov avatar Jan 06 '15 10:01 dudrenov