Write safer and more comprehensive code in Swift by implementing and using custom strongly typed values, avoiding potential unwanted problems.
Find out in this post how to create enums with raw values of custom types in Swift, and go through a demonstration of all you need to know.
Find out what is the difference between frame and bounds in iOS through the implementation of a small app that explains everything visually.
Meet the factory method design pattern through simple examples and find out how it helps to keep the various concepts in code separated.
Find out in this post what the Defer statement is in Swift and how to use it in order to perform clean up actions in code blocks effectively.
Explore how to use action closures with UIKit controls, the new alternative of the old good target-action pattern available since iOS 14.
Learn about variadic parameters and how to implement functions that contain them and accept an arbitrary number of values.
Overloading functions in Swift is a common technique, and this post shows how to apply it and gain flexibility and convenience.
Explore and understand what stored and computed properties are in Swift, and how to gain better programming habits for better code.
Read about escaping closures in Swift and how to avoid memory related problems in a post that explains everything in simple words.