• Animating complex shapes in SwiftUI

    Hello and welcome to another blog post about SwiftUI. This time, we will talk about the animation of complex shapes in SwiftUI. You will understand animatableData property and will be able to implement animatable custom Shape struct that depends on multiple parameters. AnimatableData Animating simple shapes is easy thanks to...


  • Custom controls in SwiftUI

    In my recent project, I have created custom toggle for baby gender selection. In this post, I would like to demonstrate, how to create such a custom view in SwiftUI and comment it in the order how I usually approach these things. But first, let’s have a look at what...


  • Creating a game in SwiftUI - Story

    I created a game. In SwiftUI. And already wrote a development-related blog post about it - read it HERE. Today, my game called Flipinity has been released (get it on the AppStore) and I would like to share with you a short story that lead to this moment. But first,...


  • Creating a game in SwiftUI - Retrospection

    I created a game. In SwiftUI. A madness, you might say? Well… I fully dived in SwiftUI two+ months ago. Since the best thing to learn something is actually to ship a product I decided to create a game. Why? I was amazed by SwiftUI animation capabilities and it seemed...


  • Animating gradients in SwiftUI

    SwiftUI animation system is simply amazing. But when using gradient fills, it is impossible to animate color change by just changing its color properties. In this article, I will present and discuss possible ways how to animate gradient fills and also address the issue with .hueRotation modifier. Options The urge...