Home
Osas Blogs
Cancel

Double-Tap to Scroll-to-Top Functionality in SwiftUI TabBars

Double-tapping the same tab item to scroll to the top is pretty much a given in most Tabbed iOS apps. It’s a handy feature that lets our users zip back to the top of a lengthy list or any scrollabl...

How to Make Your TabBar Non-Transparent in SwiftUI

I always find myself googling how to customize the UITabBar appearance, because i always forget how to fiddle with the UITabBarAppearance class to achieve the non-transparent white background I pre...

Using ConfirmationDialog Modifier to Show Multiple Options in SwiftUI

The confirmationDialog modifier in SwiftUI is a handy little modifier that allows us to present pop-up dialogs to confirm actions or decisions within our iOS apps. These dialogs are great for getti...

Using LPMetadataProvider to Extract Metadata from a URL

TLDR: LPMetadataProvider allows us to extract metadata from a URL. Introduction Nowadays, majority of websites include OpenGraph <meta> tags, that summarizes their content for search e...

Using Enumerable Callbacks to Delegate Actions in SwiftUI

Rambling Intro One essential aspect of mobile engineering is communication between different components. We all know that building an interactive app requires us to use a good communication patter...

Nil Coalesce Swift Optional Bindings with Custom Operators

Swift is known for its safety features and expressive syntax, and one of its powerful constructs is the optionals system. Optionals allows us to represent values that may or may not be present. How...

How to Inject Dependencies into SwiftUI @StateObject

Intro When it comes to SwiftUI, we frequently rely on the @StateObject property wrapper for effectively handling the lifecycle of objects that persist across view updates. However, the process of ...

Leveraging ToolbarContentBuilder to Refactor Your SwiftUI Toolbar Code

Just like SwiftUI’s ViewBuilder, ToolbarContentBuilder is used to put together dynamic ui content for toolbars Intro In SwiftUI, the Toolbar component is essential for adding UI elements like...

Simplifying SwiftUI Toolbars. A Guide to Neat and Reusable Toolbar Code

Toolbars are an essential part of our iOS app’s user interfaces, providing users with quick access to common actions. However, toolbar code can become a tangle of nested closures in our view’s body...

Using Xcode Scheme Environment Variables to Store Qa Secrets

When developing iOS applications that require user authentication, It’s not unusual for teams to have some sort of express login for Qa authentication. Express login lets testers and developers acc...