leoiphonedev

SwiftUI List onTapGesture Not Working After iOS 18 Update: Solutions and Fixes

In this post, we will explore potential fixes for the issue where SwiftUI List elements fail to register onTapGesture actions after upgrading to iOS 18. The code worked perfectly fine over the past few months but now behaves inconsistently on iPhones running iOS 18. While holding down a button or element triggers the tapGesture action […]

SwiftUI List onTapGesture Not Working After iOS 18 Update: Solutions and Fixes Read More »

Understanding SwiftUI Stacks: HStack, VStack, and ZStack

If you are designing your iOS app with SwiftUI, it’s essential to understand the basic concepts of Stacks, particularly HStack, VStack, and ZStack, and how to use them. In this tutorial, we will explore these three types of stacks. HStack HStack – H in HStack stands for Horizontal. This stack view arranges all the elements/views

Understanding SwiftUI Stacks: HStack, VStack, and ZStack Read More »

Set background image to navigationbar in Swift – iOS Swift Tutorial

In this tutorial, we will learn how to set background image to UINavigationBar a background image. Since the iOS 13.0, we do have a new property called appearance, that allows us to change color, font, and image of UINavigationController or UINavigationBar. Prior to iOS 13.0, we can do this by simply setting backgroundImage to UINavigationBar.

Set background image to navigationbar in Swift – iOS Swift Tutorial Read More »

Integrate Google Firebase Crashlytics in iOS app using swift

The Firebase Crashlytics SDK allows developers to receive real-time crash reports for their apps. It logs crashes and provides detailed information about their origins, enabling developers to address and resolve issues in subsequent app releases. This, in turn, enhances the app’s stability for users. In this tutorial, we will learn how to integrate the Firebase

Integrate Google Firebase Crashlytics in iOS app using swift Read More »

Get difference between two dates in hour minutes – swift

If you are looking for difference between two dates in respect of days, hours, minutes etc., then instead of using timeinterval and calculating days, hours from those seconds. One can use Calendar inbuilt functions to get time difference between two dates as per days, hours, minutes. This can be done using date-components of calendar API

Get difference between two dates in hour minutes – swift Read More »

How to view document directory contents for the app installed on real iPhone device in xcode

Some of the app on which we are working needs to to store some data locally. For example, images or some database file like .sqlite. While working with simulators, its easy to view contents being saved inside document directory. But when you testing your app on real IPhone device then you are not able to

How to view document directory contents for the app installed on real iPhone device in xcode Read More »