An example using builder pattern in Swift

The builder pattern allows you to create objects with varying configurations without the need to have multiple constructors with different parameter combinations.

How to install sqlite3 on macOS

SQLite comes pre-installed on macOS, so you typically don't need to install it separately. If not you have a few options to install it using Homebrew or download from the official website.

Different ways to parse JSON data in Swift

Choose Codable for well-defined JSON structures, JSONSerialization for simple parsing tasks or legacy codebases, and SwiftyJSON for dynamic or exploratory parsing needs.

Apr 07, 2024#swift#json

How to run LLMs locally on your machine

You can fine-tune parameters, configure models according to specific requirements, and integrate with other local tools and libraries as needed.

Apr 06, 2024#AI#ML#LLM

Difference between KVO and KVC in Swift

While KVO and KVC are related and both are part of Cocoa's observation mechanism, they serve different purposes and operate at different levels of abstraction.

Apr 04, 2024#swift#objc#ios

iOS biometric authentication with Face ID and Touch ID

Supplement your own authentication scheme with biometric authentication, making it easy for users to access sensitive parts of your app.

Mar 27, 2024#ios#security

Dependency Injection (DI) in Swift

In DI, dependencies are provided to it from an external source, typically through constructor injection, property injection, or method injection instead of a class creating itself.

How to handle multiple async tasks in Swift

Swift offers a few ways to handle multiple asynchronous tasks, depending on whether you need them to run concurrently or wait for their results.

Mar 23, 2024#swift

How to fix ReferenceError window is not defined

You'll encounter the "ReferenceError: window is not defined" error when you try to access the window object in an environment where it's not available.

What's New in Swift 5.10

Swift 5.10 accomplishes full data isolation in the concurrency language model. This important milestone has taken years of active development over many releases.