Author: Ravi Shankar

  • Building a Pixabay Photo Explorer App with SwiftUI and Alamofire

    In this tutorial, we’ll create an iOS app that allows users to search for photos using the Pixabay API, display the results in a photo gallery, and view individual photos in detail. We’ll use SwiftUI for the user interface, Alamofire for networking, and integrate with the Pixabay API for fetching images. Project Setup First, create…

  • Building a Simple Photo Gallery App in SwiftUI

    In this tutorial, we’ll walk through creating a simple photo gallery app that displays a grid of images and allows users to view and zoom into individual photos. What We’re Building Our app will have two main screens: Let’s break down the key components and explain how they work. The Photo Model First, we need…

  • Building a Transaction List App in SwiftUI

    In this tutorial, we’ll walk through creating a transaction list app, explaining key SwiftUI concepts along the way. Step 1: Setting Up the Data Model Let’s start by defining our data model. We’ll create a Transaction struct and an enum for the transaction type. Key points: Step 2: Creating the Main View Now, let’s create…

  • How to Schedule Notifications in an Apple Watch App Using SwiftUI

    In this tutorial, we’ll guide you through creating a simple Apple Watch app using SwiftUI that schedules a local notification. This example will showcase how to notify users after a specific period, even if the app is in the background. We’ll demonstrate this by setting up a button that, when tapped, schedules a notification to…

  • Swift Concurrency -Manage API Calls in SwiftUI

    Managing API calls efficiently in SwiftUI is crucial for building responsive and user-friendly apps. By using a network service class and Swift concurrency with async/await, you can handle API requests smoothly. This guide will show you how to structure your code to manage API calls, handle errors, and display appropriate messages to users. Step 1:…

  • How to Create a ViewModel with Dummy Data for UI Testing

    In this guide, we’ll walk you through the process of creating a ViewModel and loading it with dummy data from a JSON file for UI testing. This will help you test your UI with realistic data without relying on a network or external data source. Step 1: Define the Data Model First, create a struct…

  • What are the common data formats that REST can use?

    REST (Representational State Transfer) is not limited to using JSON (JavaScript Object Notation) for data exchange. REST is an architectural style for designing networked applications and APIs that can use various formats for representing data. While JSON is a popular choice due to its simplicity and ease of use, other formats can also be used…

  • Building a SwiftUI Currency Converter App

    In this tutorial, we’ll walk through the process of creating a currency converter app using SwiftUI. This project is perfect for beginners to intermediate developers looking to enhance their skills in iOS development. We’ll cover various concepts including SwiftUI, MVVM architecture, networking with Swift Concurrency, and more. Table of Contents 1. Project Setup First, create…