Posts

Showing posts with the label Michael Katz

RW.com: Animations Article - Part 2

Image
The run continues! Will be good to make the most of it, as there will not be anywhere near as much time over the next few weeks. Anyway, second and final part on animations. Let's do it! Start Time - 15:04 So we are starting with combing transitions Combining Transitions Here is an extension on AnyTransition - extension AnyTransition {     static var customTransition : AnyTransition {       let transition = AnyTransition . move (edge: . top )         . combined (with: . scale (scale: 0.2 , anchor: . topTrailing ))         . combined (with: . opacity )       return transition     }   } This basically means that there are three specific transitions saved into customTransition - and that is specifically for the type. I'm starting to understand when it is useful to use type properties! 10 minute delay Asynchronous Transition So we have replaced to tr...

RW.com: Animations Article - Part 1

Image
The run continues! Like I said, my plan is to absorb knowledge from these 'beginner' articles. I won't get ALL of it - there'll be stuff beyond me for sure. But there WILL be elements to glean from them, that's the point. In the past I've been too concerned with understanding every aspect but actually, it's more like gradually building a complex puzzle - one piece at a time! Start Time - 15:16 https://www.raywenderlich.com/5815412-getting-started-with-swiftui-animations *Article dated Dec 9th 2019 Again, this could well be over two parts. We'll see! The three key things we're going to learn are animation MODIFIERS and withAnimation - that's the function which lets you animate STATE CHANGES. And Custom Animations! Opened project - here are the various Swift files already put in! And here's what the view structure is - The app is to basically bring up info about the planets in the solar system. Basic Animations *subheading...