Photo by Markus Winkler on Unsplash

With the evolution of SwiftUI, even smaller things in iOS Development became worth re-visiting.

In this article we will update a SwiftUI View for every 1 second using few possible ways.

With Combine — ViewModel:

Just created a View Model with timer and small refresh fresh function which increments index and update date…

Photo by Viktor Talashuk on Unsplash

This article contains complete flow of handling Documents from picking to previewing with SwiftUI. This is kind of code along. The flow is as follows:

  • Pick Documents from Files
  • Adding Documents to Local
  • Adding Documents to iCloud
  • Integrating Document Handlers with ViewModel
  • Preview Documents
  • SwiftUI Views
  • Demo

Pick Documents from Files

Files such as…

Functionality: Move to top of Tab

The popularity of SwiftUI is increasing every day. It is good to have that in our iOS development stack.

This article is to build one of common features we come across in many popular iOS Apps like WhatsApp. …

In this article, We will make a Widget for an iOS Application. To start with, We need to answer ourself few questions:

  1. What information we are going to display in Widget ?
  2. How frequently we need to update the data in widget ?
  3. Is our widget configurable by user ?

Photo by Brett Jordan on Unsplash

Identity of View plays important rule in managing SwiftUI Views lifecycle. Each View has its own identity. It can be explicitly given or taken from structural placement .

In UIKit/APPKit, each view has pointer identity since they are reference types.

Photo by Sergio Ibannez on Unsplash

WWDC is a favourite week for iOS Developers which brings huge advancements to APIs used by them in regular life. Apple also released beta versions of iOS, iPadOS, watchOS, tvOS and MacOS

But the advancements is for a year not just for one week. The sessions came online this week…

Photo by Tamanna Rumee on Unsplash

When your app has some unique file to handle and you feel creating custom file extension or adding the custom file extension created by another developer that suits your needs then follow this article to make it possible.

Before going straight away to the procedure/steps, let us understand the Uniform…

Photo by Mae Mu on Unsplash

Unlike many other languages, Enums in swift are very powerful. But we usually limit the usage of enums for few spots such as custom error type and representing different states of object.

Enums is basic value type used very commonly in iOS development. …

Photo by Dennis Brekke on Unsplash

Swift has large number of functions that can be readily used in iOS development. contains() and filter () in swift are useful when we need to search if a number exists in list and filter list based on a condition respectively.

In some scenarios these functions cannot be used as…

Photo by Mika Baumeister on Unsplash

Strings in swift are very commonly used by iOS Developers. We solve variety of problems in our development with the power of strings. But we generally overlook some of important functions in strings. In this article I try to collect such functions and add some extensions possibly.

Separate substrings from string

In development we…

Sai Durga Mahesh

Using Data Science to provide better solutions to real word problems

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