• 2025-07-24
Liskov Substitution Principle (LSP) In IOS: How To Write Trustworthy Code?

After tackling the Single Responsibility Principle and Open-Closed Principle, it's time to explore the Liskov Substitution Principle (LSP) and how it can help us write better code. At first glance, it's straightforward: if we have a component X conforming to protocol A, and another component (Y) conforming to the same…