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 ...2 min read·huypham85.hashnode.devApr 22, 2025
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...2 min read·huypham85.hashnode.devOct 11, 2024
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...2 min read·huypham85.hashnode.devMay 13, 2024
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...5 min read·huypham85.hashnode.devMay 12, 2024
Best Strategies To Handle Errors in CombineRecognizing the importance of handling both happy and unhappy scenarios, it’s vital to discuss error management strategies in Combine3 min read·huypham85.hashnode.devMay 3, 2024