General
Swift 6 Concurrency Migration Notes from a Real Codebase
What helped during Swift 6 concurrency readiness work: actor boundaries, Sendable cleanup, and safer async ownership.
Swift Tips: Switch
Please find Swift playground at github.com This post shares from simple to advance the use of in swift. These can be enhanced and some time shorthand of more lines of code. I ho...
How to check whether a module is available using canImport()
Writing multi platform code has its own challenges, but if you use the compiler test then one big challenge is solved for you: you can write one chunk code to run if a specific...
How to enumerate items in an array
There several ways to loop through an array in Swift, but using the enumerated() method is one of my favorites because it iterates over each of the items while also telling you...
Simple trick to put end to those empty tableview cells
Just like me, I am sure you all have been annoyed by those empty table view cell after your data is loaded.
Always Try, Try?, And Try!, Never give up
Beside Swift being powerful, expressive language with a flexible, elegant syntax. There is one of the features I appreciate most is native support for error handling with try ke...
Understanding more about MVVM
We all know about MVC and it’s shortcomings. I would love to explain MVVM that make developer’s life as well as testing quite easy Creating a View Model Before we take a look at...
Pure Swift Protocol 'weak var delegate' error
Just like anyone else you have encounter this error too. Writing a pure swift protocol and declaring the weak delegate you must have encountered error mentioned below. \[swift\]...