Better Programming

Advice for programmers.

Follow publication

Member-only story

Animating SwiftUI Canvas in iOS 15

A look at transformations with the canvas views

Mark Lucking
Better Programming
Published in
5 min readOct 4, 2021

--

Photo by SOULSANA on Unsplash

It wasn’t a coincidence that the Combine framework came out at the same time as SwiftUI one, they were made for each other. And although on a different scale, it isn’t a coincidence that the TimelineView was launched alongside the Canvas View either, they have been made for each other too. Read on I will explain.

Last month I published a first look at the Canvas view, with this article on building a clock using it. Today I would like to use a different version of the TimelineView. A version I suspect intended specifically for use with the Canvas view.

The Brief

I have long been fascinated by affine transformations and published an article all about them a while back. I want in this paper to do much the same. I want to build a tool for helping the reader and myself of course understand how these beasts work. Now to be clear I am talking about 3D affine transformations this time.

To boot I am also planning to use the animation version of the TimelineView, together with a Canvas view. The plan is to create an interface that shows in real-time when I make changes to the parameters managing my 3D affine animation.

--

--

Mark Lucking
Mark Lucking

Written by Mark Lucking

Coding for 35+ years, enjoying using and learning Swift/iOS development. Writer @ Better Programming, @The StartUp, @Mac O’Clock, Level Up Coding & More

No responses yet

Write a response