Build a cool loading leaf animation using SwiftUI

Image Credit: https://morioh.com/

With the appearance of SwiftUI Framework, the way of writing UI code has completely changed. Due to it’s Declarative Syntax creating UI has been made much simpler. It provides us a lot of features to develop our creativity. One of these features is related to animating state transitions.

This article will guide you to develop a Loading Leaf Animation in SwiftUI and the result is as follows:-

Let’s not waste anymore time and get started.

Tutorial

Creating an iOS Project

First create an iOS project and name it as LeafAnimation. …


This article demonstrates the detection of different facial gestures (Head Nods, Eye Blinks, Smile etc) with the help of Firebase ML Kit Face Detection API. Here we will be mainly focusing on the use case of Firebase ML Kit Vision API to detect different facial gestures. For the source code template of the project you can visit the Part Two of this series.

Detecting Eye Blinks (Double Eye, Left Eye, Right Eye, Smiley)

For this I have used JGProgressHUD as a third party Cocoapods library to show the emoji’s for the eye blink.

Detecting Head Nod (Right & Left)

For…


This article demonstrates the detection of different facial gestures (Head Nods, Eye Blinks, Smile etc) with the help of Firebase ML Kit Face Detection API. Here we will be mainly focusing on the use of Firebase ML Kit Vision API to detect different facial gestures. For initial setup of the project you can visit the Part One of this series.

Image Credit: https://droidmentor.com/

Face Detection Using ML Kit

With ML Kit’s face detection API, you can detect faces in an image, identify key facial features, and get the contours of detected faces.

With face detection, you can get the information you need to perform tasks like embellishing selfies…


This article demonstrates the detection of different facial gestures (Head Nods, Eye Blinks, Smile etc) with the help of Firebase ML Kit Face Detection API. Here we will be mainly focusing on the initial setup of both Firebase and iOS project. If it is already known to you then you can skip this and move to the Part Two of the series.

Image Credit: https://firebase.google.com/

ML Kit for Firebase

ML Kit is a mobile SDK that brings Google’s machine learning expertise to Android and iOS apps in a powerful yet easy-to-use package. Whether you’re new or experienced in machine learning, you can implement the functionality you need…


ARKit is the framework from Apple that handles the processing to built Augmented Reality apps and games for iOS devices. It is a high-level API supplying numerous and powerful features making a magical world come to life.

Image Credit: developer.apple.com

Layers Of ARKit

ARKit can be broadly divided into 3 layers. They are as follows:

WORLD TRACKING

World Tracking is the most key function of ARKit. It allows us to track surfaces, images, objects, people, or even our faces.

SCENE UNDERSTANDING

Scene understanding means analysing the real-world scenes, vertical and horizontal planes, objects and other information. With this understanding we can place virtual object into the real world. …

Amit Palo

iOS Developer

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store