Posts from Swift

How to Build a QR Code Scanner in SwiftUI

By Saruque Ahamed Mollick

In this tutorial, I will show you how to build a QR code scanner in SwiftUI. Will start with a simple and basic QR code scanner. There will be no button. On opening the App the cam.... Read More

Hide the navigation back button in SwiftUI

By Samim

In this tutorial, we will see how to hide the navigation back button in SwiftUI. SwiftUI provides a modifier called navigationBarBackButtonHidden(), by specifying the boolean value.... Read More

App crashed – Add NSCameraUsageDescription key in info.plist

By Saruque Ahamed Mollick

This morning I found another error and said: “This app has crashed because it attempted to access privacy-sensitive data without a usage description. The app’s Info.pli.... Read More

How to Extract Subviews in SwiftUI

By Samim

In this tutorial, we will see how to extract subviews in SwiftUI. We can extract subviews by creating separate views and then using them within a parent view. This helps us organiz.... Read More

Long Press Detection in SwiftUI

By Saruque Ahamed Mollick

In this tutorial, we will learn how to detect long press in SwiftUI. In order to do this, I will create a simple image view and on clicking on that image for more than a specific t.... Read More

Gesture: System gesture gate timed out. in SwiftUI

By Saruque Ahamed Mollick

Hello, SwiftUI developers, recently I found a warning in my Xcode console while running a SwiftUI app. The warning is Gesture: System gesture gate timed out. When does this occur? .... Read More

Create a marching ants border effect in SwiftUI

By Samim

In this tutorial, we will see how to create a marching ants border effect in SwiftUI. In SwiftUI, we can achieve a marching ants border effect by utilizing the strokeBorder modifie.... Read More

Adjust the opacity of a view in SwiftUI

By Samim

In this tutorial, we will see how to adjust the opacity of a view in SwiftUI. The .opacity() modifier in SwiftUI controls opacity, which determines how transparent a view is. It ra.... Read More