Best Practices for Managing Third-Party Libraries in Multi-Module iOS AppsWhen building a multi-module iOS app using Swift Package Manager, importing third-party libraries like Firebase directly into multiple feature modules quickly becomes messy. It leads to duplicated configurations, tight coupling, and hard-to-maintain ...Apr 22, 2025 · 2 min readhuypham85.hashnode.dev
Task Tree and Task Cancellation in Swift Concurrency: Key Concepts ExplainedTask Tree Let’s take a look at the code below As you can see, the function printStudentInfo() has 2 child Tasks defined using async let. Inside the child Task getClassesAndScores(), it also has 2 child Tasks getClasses() and getScores() . So we have...Oct 11, 2024 · 2 min readhuypham85.hashnode.dev
Swift Code Explained: Implementing Safe Array SubscriptionWhen working with arrays in Swift, you might have come across a common error called “Fatal error: Index out of range”. This error typically occurs when you unintentionally try to access an index that is not present in the array. Actually, accessing e...May 13, 2024 · 2 min readhuypham85.hashnode.dev
Scheduler in Combine: Managing Asynchronous Tasks EfficientlyWhat is a scheduler According to the scheduler documentation, a scheduler is “a protocol that defines when and where to execute a closure.” You can use a scheduler to execute code as soon as possible, or after a future date Combine does not work dir...May 12, 2024 · 5 min readhuypham85.hashnode.dev
Best Strategies To Handle Errors in CombineHandling errors properly is essential for creating a robust and reliable application. Error handling in reactive programming is comparatively more complex than its imperative counterpart. But when using Combine, you’re equipped with handy operators t...May 3, 2024 · 3 min readhuypham85.hashnode.dev