SwiftUI Shapes

SwiftUI provides the Shape protocol which allows developers to create any customs shape they want. It also provides 5 concrete shapes out of the box. Built-in Shapes Lets start with the 5 shapes shipped in SwiftUI: The important thing to note here are the configurable options and the default configurations that these shapes take on: …

SwiftUI Button

Tested on Xcode 13.4 with iOS 14 Button is one of the most fundamental building block for mobile apps. SwiftUI provides a very flexible way to create and customise buttons in your app. Creating a Button Button in SwiftUI can simply be created as below: This creates a button that simply consists of the text …

SwiftUI: Animating Text Changes via Transitions

In this post lets discuss the curious case of applying transitions to Text to animate changes to the String being displayed. Have a look at the Transitions in SwiftUI I wrote earlier for an overview of how transitions and animations work in SwiftUI. Animating Text Changes via Transitions Having read it, you may think the …

Transitions in SwiftUI

In this post we will take a closer look at transitions in SwiftUI. SwiftUI provides powerful APIs which do a lot of heavy lifting and makes it really easy for developers to add powerful transitions to their app. First thing to notice with SwiftUI is that it provides animations and transitions and the question that …