Author: Ravi Shankar

  • Building Custom Views with SwiftUI

    SwiftUI provides a powerful and flexible framework for developing sophisticated user interfaces with less code and greater reuse. This blog post will demonstrate how to create custom views and incorporate animations in SwiftUI, using an expense split app as our example. The goal is to show you how to enhance the UI/UX of your apps…

  • Adapting Text Colour for Dark Mode in SwiftUI

    In SwiftUI, ensuring text colour adapts appropriately to dark mode is crucial for readability. If your app supports an automatic appearance mode, the text colour needs to adjust dynamically based on the system’s appearance settings. Here’s a simple way to implement this: This code snippet checks if the darkMode setting is set to .auto. If…

  • Understanding State Management in SwiftUI

    State management is a crucial aspect of building dynamic and responsive applications in SwiftUI. For beginners, understanding how to manage state effectively can significantly enhance your ability to build robust applications. Let’s explore how to use various state management techniques in SwiftUI using an example of an expense split app. We’ll cover @State, @Binding, @StateObject,…

  • Building Your First iOS App: UIKit

    Welcome to the foundational guide to building iOS apps using UIKit, Apple’s traditional framework for constructing and managing user interfaces. In this tutorial, you will learn how to create a basic iOS app using UIKit, focusing on essential components such as views, view controllers, and user interaction. By the end of this guide, you’ll understand…

  • SwiftUI: Building Your First App

    Welcome to the exciting world of app development with SwiftUI! If you’re new to SwiftUI, this guide is designed to introduce you to the fundamentals of building an iOS app using this innovative framework. By the end of this tutorial, you will have a basic understanding of SwiftUI’s core concepts, including views, modifiers, and state…

  • Managing Dark Mode and Light Mode in iOS Apps

    In today’s mobile apps, supporting both dark mode and light modes isn’t just a nice to have it’s often expected by users who want their apps to integrate seamlessly with their device settings. Dark mode provides a darker colour palette for all screens, views, menus, and controls, and it’s beneficial for both reducing eye strain…

  • Privacy Manifests and Required Reason API

    Most of the iOS developers might have received an email about “Privacy Manifest” issues from Apple when submitting an app for review. “We noticed one or more issues with a recent submission for App Store review ITMS-91053: Missing API declaration, TMS-91064: Invalid tracking information etc. You must include a NSPrivacyAccessedAPITypes array in your app’s privacy…

  • How to simplify persistent data using @AppStorage

    In SwiftUI, the @AppStorage property wrapper that assists how we interact with UserDefaults, streamlining the process of persisting data. By simplifying data persistence, @AppStorage makes reading from and writing to UserDefaults more straightforward and integrated within the SwiftUI framework. Let us take the following example where we are trying to store tap count in User…