Category: ios

  • 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 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…

  • 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…

  • Handling HTML Text Gaps in Swift

    When working with HTML content in iOS applications, developers often encounter challenges in displaying text with the proper formatting, especially when it comes to maintaining the gaps or spaces between paragraphs. In this post, we are going to explore a simple solution to ensure your HTML text is displayed with the appropriate paragraph breaks, enhancing…

  • Auto Layout in iOS

    Using Auto Layout feature developers can align UI controls for different devices, screen sizes and orientation. This reduces the code to be maintained and makes life easy for the developers. Auto Layout solves UI design issues by creating relationship between the UI elements. This follows constraint based layout system where you can define contraints for…

  • How to customize status bar in iOS

    Status Bar appears at the top of your device displaying information such as battery left in your device and carrier details. The default style of status bar is black and looks as shown in the below screenshot. But if your screen designs are dark then you can change the status bar style to Light Content.…

  • Higher-Order Functions in Swift

    Higher Order function are powerful tools can help you transform, filter, and combine data with ease. What are Higher-Order Functions? Higher order functions can take other functions as input or return functions as output. In Swift, we often use them with closures to work with collections like arrays. Let’s start with a sample dataset to…