In iOS development, content alignment and spacing is something that can take a lot of our time. Today, letโs explore how to set constraint with UIKit, update them and resolve constraint conflicts. Letโs start with a simple definition: a constraint is a rule to let the operating system how to place your UI component. It […]
Combining Swiftโs powerful generics system with the fact that any Swift type can be extended with new APIs and capabilities enables us to write targeted extensions that conditionally add new features to a type or protocol when it fits certain requirements. It all starts with the where keyword, which lets us apply generic type constraints […]