Iteratively Reverse Linked List in Swift
Hallo vrienden, Leo hier. Today’s topic is how to Iteratively Reverse Linked List in Swift and how to reverse linked lists can be useful for you. This post will be very brief and very important to all involved in algorithms. Reversing Linked Lists is a legendary challenge as a common place to algorithm students. It’s […]
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 […]
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 […]
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 […]
How to Make APIs Constraints in Swift
Hallo meisjes en jongens, Leo hier. The topic today is how to make APIs constraints in Swift. It’s a very quick tip on how to turn code unavailable in Swift. It’s very interesting that Xcode helps you when you try to constrain your code to some version or make it unavailable at all. When you […]