© 2023 Hashnode
#swiftui
Progress views are a common UI element used to indicate the progress of a task or the completion percentage of an action. In SwiftUI, we can use the built-in ProgressView to add this functionality to …
In any application, it is important to notify the user of important information or errors. One way to achieve this in a SwiftUI application is through the use of an Alert view. An Alert is a view that…
The Date Picker is a common user interface element in iOS apps for selecting dates. SwiftUI provides the DatePicker view to make it easy to add a date picker to your app. In this blog post, we’ll go o…
In Swift, operators are symbols or keywords used to perform specific operations on values, while range is a special type used to represent a sequence of values. Let's dive into each in more detail. O…
The ternary operator is a shorthand way of writing an if-else statement in a single line of code. It is a powerful tool for simplifying code and improving readability. In SwiftUI, the ternary operator…
Stepper is a user interface control that allows the user to increment or decrement a numeric value by tapping on a plus or minus button. SwiftUI provides a built-in Stepper view that makes it easy to …
This is a follow-up to a previous blog post of mine. I explained how Mobile Analytics providers could not automatically capture user interactions and presented screens unless the controls were impleme…
Navigation Toolbar Item is a navigation bar item that is placed on the navigation bar of a view in SwiftUI. It can be used to display additional actions or controls related to the current view. Naviga…
While making a mobile app, it’s common and of vital importance to include a "Welcome" section for the first launch of the app, where the functionalities and tips for usage can be introduced. In today’…
A common feature in apps is to allow users to sort a list of items based on various criteria such as name, date, or size. While SwiftUI provides built-in support for sorting by a single property, impl…