How to remove/suppress the Default MapKit User Location Callout Annotation
Hallo iedereen, Leo hier. The topic today is how to remove/suppress the Default MapKit user location callout annotation. We will explore a quick tip about MapKit. MapKit has a handy property that you can turn on to show the user location on the map called showsUserLocation. When you set it to true it shows the […]
Expand your APIs capabilities with Opaque Types in Swift
Hallo collega’s, Leo hier. The topic today is how to Expand your APIs capabilities with Opaque Types in Swift. Come and learn why the new `some` keyword could be useful for your daily life Imagine this story: You are asked to write a new SDK that will have a lot of APIs. Your task is […]
Using Protocol Default and Conforming Function in Swift
Hallo mijn metgezellen, Leo hier. The topic today is using Protocol Default and Conforming Function in Swift to be able at the same time use the default protocol function and the conforming function. Today we will explore a very niche case about Protocols. It’s not something new that Protocol is one of the most important […]
Using Native Swift to make Units Conversions
Hallo mijn vrienden, Leo Hier. Today topic is how to use Swift to make Units Conversions and improve your code readability. Today we will explore something that I learn two weeks ago. I was wondering if there’s a native way to convert hours to seconds or even kilometers to meters. The good thing is that […]
Making Pixel Art Animations with UIImageView in Swift
Hallo heksen en tovenaars, leo hier. The topic today is how to make animations with UIImageView in Swift and bring life to your apps just using plain UIImage objects. Today we will explore an API that I discovered recently. Last week I had to animate the pin of a map. But it’s not animate it’s […]
Cryptographic Keys and Swift
Hello everyone, Leo here. This is the Cryptographic Keys and Swift introductory article. Today we will introduce a very nice theme about Cryptographic Keys. iOS is heavily secure based on cryptography, which Apple introduces in iPhone 5S versions and above a dedicated subsystem (mix of hardware and software) called Secure Enclave. For us, iOS developers, […]
Unit Testing UIViewController Dismiss Closure in Swift
Hallo alle mensen, Leo Hier. The topic today is unit testing UIViewController dismiss closure in your Swift code. Today we will attack some tricky unit testing code. First, let’s talk about testing UIViewController with unit tests. I’m very akin to testing everything. Literally. I think we should have unit tests for everything. Every little piece of code […]
Using Swift to Parse Person Name with Swift 15 APIs
Hallo katten en poesjes, Leo hier. Today’s topic is how to parse person name with Swift and how to do iOS automatically stores parts of the name for you. Today we will explore the PersonNameComponents API from the foundation. From time to time we are asked to parse a person’s came into our apps. There […]
Autoclosure in Swift
Hallo vrienden, Leo hier. Today’s topic is autoclosure in Swift and how you can improve your code using them. We will explore the @autoclosure annotation. Autoclosure annotation is a great addition to the language and it enables you to define an argument that will be automatically wrapped by a closure. The most important thing is […]
How to create Home Screen Quick Actions in Swift
Hallo dammes en heren, Leo hier. The topic today is about Home Screen quick actions. They are a really good experience created by Apple from iOS 13 and above where you can have access to whatever feature that the app provides from your Home Screen. Imagine that you have an e-commerce app and you can […]