Home
Osaretin's Blog
Cancel

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...

Understanding Keychain Query Attributes

As we established in our prior blog post, the Keychain Services framework is like a trusted vault, where you can securely store sensitive information such as passwords, tokens, and credit card deta...

Understanding Swift OptionSet, a Flexible Data Type for Managing Multiple Choices

TLDR Option sets can be thought of as an extension of enums that allow multiple cases to be true simultaneously As Swift developers we have various tools at our disposal to handle different c...

Graphql Jargon Sheet

TLDR GraphQL is all about hooking you up with exactly what you need. Whether you’re using a mobile or a web app, it lets you to request only the specific fields or properties that you’re intere...

How to Create your Custom EnvironmentValues in SwiftUI

TLDR A set of properties that easily exposes app-wide configuration to our views. A good example is \.colorScheme that tell us if the device is currently in light or dark mode. Hey folks! If ...