Did you know? How to hide keyboard in SwiftUI?

iOS 15 have new property wrapper: @FocusState. This is exactly like a regular @State property, except it’s specifically designed to handle input focus in our UI.

In this tutorial we will get to know that how to hide keyboard or you can say how to work with the @FocusState in SwiftUI.

Read more

SwiftUI Animations – 3D Rotation Effect

SwiftUI has lots of new features with easiest way of implementation. In this tutorial, you’ll learn how to add fancy 3D animations with SwiftUI. 

rotation3DEffect

The rotation3DEffect() modifier gives output like as rotating views in 3D.

This modifier have two parameters:

angle: for rotate view in specified angle/degrees
axis: for X, Y and Z axis to perform rotation.

For Example:

Let’s Do It With Animation

Now we will create one button with rotating view by 3D Effect.

Read more

SwiftUI Tutorial – Creating and Combining Views

SwiftUI announced in WWDC 2019. It’s an innovative, exceptionally simple way to build user interfaces across all Apple platforms with the power of Swift. In previous blog I have shared some references from apple documents.
Swift UI Logo
We will learn it by examples. First of all let’s start with simple UI.

Read more