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

WidgetKit: How to add deep link on iOS Widget?

Widget in iOS is massive update by Apple. Today we will discuss about the deep link on widget.

As per apple suggestions small widget have single tap target, medium and large widget can have multiple tap targets. For Example, a widget with multiple photos can have different tap targets to perform action on the specific photo.

Apple suggested to avoid offering so many targets that people have trouble tapping the one they want.

Let see how we can add it by code…

Read more

iOS 14 – How to use UIColorWell and UIColorPickerViewController?

iOS 14 comes up with three new concepts of pickers, which are Menu, Date Picker and Color Picker. All of this will be useful for the developers as well as users of iOS. Today we will learn about the UIColorWell and UIColorPickerViewController.

Read more

How to add new Firebase Crahlytics SDK to your iOS project?

Now a days Fabric is sending notice for migrating, as I got email today about [FINAL NOTICE] Fabric is shutting down May 4, 2020. We can move to the new Firebase Crashlytics SDK.

Integrating the new Firebase Crashlytics SDK is quick and easy. Let’s take a look.

Read more

How to set alternate icon for an iOS app programmatically?

Hello iOS Devs,
Hope you guys doing well in this COVID-19 situation. Stay Safe At Home.

In this week Xcode 11.4 released. Many new things came with that. You can check What’s new in Xcode 11.4? blog for the same.

App icon change functionality is available from iOS 10.3. In this tutorial we will learn to set an alternate icon for an iOS application programmatically.

Let’s Start!

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:

 Text("SwiftUI Animations")
    .rotation3DEffect(.degrees(45), axis: (x: 1, y: 0, z: 0)) 

Let’s Do It With Animation

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

Read more