Animating View Transitions in Swift
Oct 13, 2021, 3:06 PM
Hallo Dames en Heren, Leo hier.
Today 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 thing is that Apple provides...
Curious Ways To Solve Tests Equality Problems in Swift
Oct 7, 2021, 2:57 AM
Hallo keizerinnen en keizers, Leo hier.
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
Sep 29, 2021, 2:23 PM
Hallo vrienden, Leo hier.
Dependency Injection is a very old programming topic. No wonder that we have so many resource about it in the web, and it can be used to help you accomplish the old saying: Compositions over inheritance. I'm not...
Using convert function to make Animations in Swift
Sep 23, 2021, 2:50 AM
Hallo vrienden, Leo Hier.
Today we will see how can you a cool animation using scale and translate in your projects. Knowing how to animate things gives live and vibrancy to your projects. Custom animations can be really hard and not...
Create Generic Factory in Swift
Sep 16, 2021, 2:39 AM
Hallo koningen en koninginnen, Leo hier.
Today we'll explore some 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...
Linked Lists with Sequence and IteratorProtocol in Swift
Sep 9, 2021, 2:21 AM
Hallo iedereen, Leo hier.
This week I came up with a problem about 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 using it. It's...
Making Documentation that is pleasant to read in Swift
Sep 1, 2021, 6:18 AM
Hallo meisjes en jongens, Leo hier.
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 day-to-day live is to write code that anyone will understand,...
Merge Two Binary Trees In Swift
Aug 26, 2021, 2:39 AM
Hoi vrienden, Leo hier.
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 the it's easier to reason about it, and a code easy...
Sound Stream Analysis Using AI in Swift
Aug 18, 2021, 6:08 AM
Hallo vrienden, Leo hier.
In iOS 15 Apple launch a build in sound classification tool with a pre trained model. It's amazing that from now on all developers of the world will have a built in tool that can guess what type of sound the...
Chain of Responsibility Pattern in Swift
Aug 12, 2021, 6:08 AM
Hoi mensen, Leo hier.
Today we will explore the responder chain design pattern that is responsible for for all the touches going to the right views in iOS. When a user touches the screen it starts hit test, in iOS is the responder chain...
How to do APIs constraints with @Available in Swift
Aug 5, 2021, 3:46 PM
Hallo meisjes en jongens, Leo hier.
Today it's a very quick tip to how to turn code unavaliable in Swift. It's very interesting that Xcode help you when you try to constraint your code to some version or make it unavailable at all.
When...
Using HMAC-based Key Derivation Function to create Authentication Message Codes in Swift
Jul 22, 2021, 5:21 PM
Hallo mensen, Leo Hier.
This is my first post abroad, now writing from Netherlands! 🎉🎉🎉 I was missing to write here and talk to you.
Now I'm more or less settle down for a bit and I have time to post a really quick article about iOS and...
Solving Eight Puzzle with A* Algorithm in Swift
Jul 3, 2021, 9:23 AM
Hallo vrienden, Leo hier.
Today we'll talk about a very great graph search algorithm called A* ( A Star). This algorithm main objective is to find path in the graph based on some conditions that you can choose ( also know as Heuristic)....
Timers flavors in Swift
Jun 25, 2021, 1:52 PM
Hallo mannen en vrouwen, Leo hier.
Today we'll explore one thing that eventually everybody come across in app development that is some task should be done from time to time OR some task delayed in the future. Of course we are talking about...
Default Value from Dictionary in Swift
Jun 16, 2021, 9:35 AM
Hallo vrienden, Leo hier.
Today we'll discuss some interesting and somewhat kind confusing default value getter from dictionaries. Using dictionaries in Swift are easy and straightforward but when you come across some not so usual...
A trick to keep the Struct's Default Memberwise initializer in Swift
Jun 10, 2021, 8:17 AM
Hallo vrienden, Leo here.
Today we see a very short example of initializer in Swift. Structure types automatically receive a memberwise initializer if they don’t define any of their own custom initializers. Unlike a default initializer,...
Evolving a String Extension using Functional Programming in Swift
Jun 3, 2021, 4:54 PM
Hallo tovenaars en heksen, Leo here.
Today we will explore some curious things that you can do to make your life easier with functional programming. The goal is to make your code describe what is it doing instead of have to figure it out....
How to change Tab Bar Item font when selected in Swift
May 27, 2021, 9:50 AM
Hallo iedereen, Leo hier.
Today we will explore an easy but tricky problem about tab bar controllers. UITabBarController is a very handy component when you want to flat the navigation of your app.
The problem is that the default...
Permanent and Temporary Tabs in Xcode
May 19, 2021, 8:20 AM
Hallo vrienden, Leo here.
This week my friend Tales teach me about one Xcode feature that bugged my head for a long time. Did you notice that sometimes you open a new file in a new tab and sometimes you open new files replacing the tab you...
Dragging views around in Swift
May 13, 2021, 9:40 AM
Hello dear colleagues, Leo here.
Today we'll explore some dragging views and a particular problem that I had when trying to do that. The code will be the simple as it can be to focus on what is interesting about dragging views in iOS....
Hash Functions in Swift
May 6, 2021, 6:43 AM
Hello Queens and Kings, Leo here.
Today we'll explore one of the basics concepts about cryptography, of course I'm talking about hashing. Hashing is so important that it's baked into Swift Standard Library, because it enables two out of...
Tree Pruning algorithm in Swift
Apr 28, 2021, 8:50 AM
Hello passionate coders, Leo here.
Today we'll continue the Algorithms series here. The algorithm envolve binary tree data structure and some recursion, stay here to explore this challenge. The problem statement you can find and test at...
Coordinators and Tab Bars: A Love Story
Apr 21, 2021, 2:34 PM
Hello ladies and gentlemen, Leo here.
This will be a very long and interesting(I hope) post because the subject today is... Architecture, more specifically coordinator pattern. The coordinator pattern comes to help the situation where you...
Single Forward Pipe Operator in Swift
Apr 15, 2021, 8:11 AM
Hello functional and object developers, Leo here.
Today we'll explore a operator typically embedded in functional programming . The pipe operator is useful when we have long chain of functions that the return value is used as input value...
Framework Access Levels in Swift - A Curious Journey
Apr 10, 2021, 2:02 PM
Hello fellow developers, Leo here.
Today will be a quick topic about framework building and the difference between public and open access control levels.
This masterpiece was painted by Jacques Fouquier, Jacques Fouquières or Jacob...
1 Year Blogging - Unexpected lessons I've learned
Apr 2, 2021, 7:45 AM
Hello princesses and princes, Leo here.
This will be an 1 year blog celebration post. I want to cheer all the readers that have been reading so far, and I'm excited for the new journey ahead.
Of course for this post not to be only me...
Point of Synchronization in Swift - The Interview Problem
Mar 25, 2021, 12:49 PM
Hello Queens and Kings, Leo here.
Today I'll start one series about everything related to iOS interview process. The history started here: the Babylon health iOS github . There you can see that shared all theirs interviewing process and I...
MapKit: Two Annotations Animations
Mar 17, 2021, 10:37 AM
Hello ladies and gentlemen, Leo here.
Today we'll do some explorations in MapKit. If you are into MapKit, a huge fan of maps, a cartographer (never knows) or just want to know how to auto resize a map base in two annotations, this post is...
Frameworks: embed or not embed that's the question
Mar 9, 2021, 7:01 AM
Hello my fellow peers, Leo here.
Today we'll explore one thing that I recently discovered and I want to share with you all. When you create a framework in iOS development it can be various things, today we'll focus on only two of those...
Algorithms: Squares of a Sorted Array in Swift
Mar 3, 2021, 6:47 AM
Hello my comrades, Leo here.
Today we'll continue the algorithm series solving a classic Two Pointer technique. So let's go to the problem . The image is
The problem
You have a list of sorted integers and you want to create a func that...
Reactive Swift - The Boxing Technique
Feb 18, 2021, 7:06 AM
Hello my brilliant readers, Leo here.
Today we'll explore one of the oldest reactive techniques that you can easily implement in pure Swift. But why would you do that if you have Combine or RxSwift. Well, maybe you don't want to add all...
The lesser-known Dictionary initializers in Swift
Feb 11, 2021, 7:31 AM
Hello witches and werewolfs, Leo here.
Today we'll explore some Swift Standard Library. Today the topic is about the lesser known Dictionary initializers, recently I discovered that Dictionaries in Swift has 7, yes you read it right, SEVEN...