In this tutorial, we will see how to initialize @StateObject with parameters in SwiftUI. We use the @StateObject property wrapper to manage the lifecycle of an ObservableObject. It.... Read More
In this tutorial, we will see how to recognize two gestures simultaneously in SwiftUI. SwiftUI normally only activates one gesture recognizer action at a time, and it prioritizes t.... Read More
In this tutorial, we will see how to change the background color of the Rounded Corner Border Button in SwiftUI. We can simply create a rounded corner button with a border using a .... Read More
In this tutorial, we will see how to keep the search bar always visible within the navigation bar. We can now add a search bar to our navigation views, this simplifies the process .... Read More
In this tutorial, we will see how to round a double value to x number of decimal places in Swift. Suppose we have a number like 1.34127538359353. Sometimes, we might want to make i.... Read More
In this article, we will learn how to render raw markdown content in Text view in SwiftUI. Sometimes, we want the Text view to display the text as we have specified. Suppose I have.... Read More
In this tutorial, we will see how to make two views the same width in SwiftUI. Suppose we are creating two buttons, as we know the button size normally depends on the label of the .... Read More
In this tutorial, we’ll explore how to dynamically change the background color of a view based on the system’s dark mode setting. Dark mode is a popular feature for exp.... Read More