Testing your Swift codables with Python
Hallo collega’s, Leo hier. The topic is Testing your Swift codables with Python to fast check if your codable objects work. The problem we will face today is something that every iOS Developer eventually encounters. You start your sprint (if you still do sprints and not a kanban-like development), and the backend is not ready […]
Animating View Transitions in Swift
Hallo Dames en Heren, Leo hier. The topic today is animating View Transitions in Swift, and how to do smooth view animation transitions with UIKit. We will explore how can you create a transition animation between two view controllers. Whenever you try to present a view controller it can be animated or not. The good […]
Best ways to do Equatable in Unit Tests using Swift
Hallo keizerinnen en keizers, Leo hier. The topic today is various ways to do equatable in Unit Tests using Swift. Today we will explore a somewhat common problem when testing code in Swift/iOS development. I can’t stress enough the fact we all should be doing tests, this is a real game changer for any developer. […]
Dependency Injection using Property Wrappers in Swift
Hallo vrienden, Leo hier. The topic today is how to use Dependency Injection using Property Wrappers in Swift. Dependency Injection is a very old programming topic. No wonder we have so many resources about it on the web, and it can be used to help you accomplish the old saying: Compositions over inheritance. I’m not […]
How to Use UIKit Convert Function in Swift
Hallo vrienden, Leo Hier. Today’s topic is how to use Convert Function in Swift to create animations. Today we will see how can you a cool animation using scale and translate in your projects. Knowing how to animate things gives life and vibrancy to your projects. Custom animations can be really hard and not intuitive […]
Generic Factory Pattern in Swift
Hallo koningen en koninginnen, Leo hier. The topic today is how to create a Generic Factory Pattern in Swift. We’ll explore a very special Factory pattern in Swift. The factory method is a very interesting one because is a creational pattern. The creational design patterns provide various object creation mechanisms such as initializers or functions, […]
Linked Lists with Sequence and IteratorProtocol in Swift
Hallo iedereen, Leo hier. The topic today is how to create Linked Lists with Sequence and IteratorProtocol in Swift. This week I came up with a problem with Linked Lists. Although they are very simple to construct in Swift, you can power up them to use Swift sugar syntax for-in loop operation to help yourself […]
Documentation that is pleasant to read in Swift
Hallo meisjes en jongens, Leo hier. The topic today is how to create documentation that is pleasant to read in Swift and help others to interact better with your code. Today we will explore a little further into how can you be more descriptive in your Swift code. A very important part of every developer’s […]
Merge Two Binary Trees In Swift
Hoi vrienden, Leo hier. The topic today is how to merge two binary trees in Swift and why you should learn that amazing algorithm. Today we will solve this algorithm question that uses binary trees and recursion to achieve a really nice solution. Trees algorithms usually use recursion because it’s easier to reason about it, […]
Chain of Responsibility Pattern in Swift
Hoi mensen, Leo hier. Today’s topic is the Chain of Responsibility Pattern in Swift which is a behavioral design pattern that lets you send requests along a chain of handlers. We will explore the responder chain design pattern that is responsible for all the touches going to the right views in iOS. When a user touches the […]