Pavel Zak’s dev blog

#iOS development #SwiftUI #maybeMore

Posts - Page 3 of 4

Animating complex shapes in SwiftUI

  • 6 min read

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.

Read More

Custom controls in SwiftUI

  • 5 min read

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 I am aiming for.

Read More

Animating gradients in SwiftUI

  • 5 min read

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.

Read More