Skip to content

mihaelamj/CubeIn3DWithCoreAnimation

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

29 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CubeIn3DWithCoreAnimation

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:

Cube 3D

This is cube assembled.

There's also a flattened version:

Cube Flattened

The side number two is actually behin the side number 4.:

Cube Flattened

As you can see here:

Cube 3D Animating

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.

Cube Flattened

The 3D version is transformed incorrectly.

Cube Flattened

Forks and PRs are more than welcome!!

Here's the link to YouTube

About

A demo of 3D cube done purely in Core Animation

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors

Languages