A demo of 3D cube done purely in Core Animation
Here's a link to the blog post describing the process in details
It uses AllApples Swift package, to enable the example to work both on iOS devices and on the Mac.
Well, that din't work out great, for I still have to make the Mac version to work correctly.
So on iOS and iPadOS it works as expected:
This is cube assembled.
There's also a flattened version:
The side number two is actually behin the side number 4.:
As you can see here:
The macOS version does not work yet.
I guess the sublayerTransform property is not working, and the transforms don't look the same.
The flattened version does not respect anchor points and positions.
The 3D version is transformed incorrectly.
Forks and PRs are more than welcome!!





