Skip to main content
Kelvas blog
  1. Categories/

iOS

2022


UIKit ViewController with SwiftUI

·1142 words·6 mins
UIKit ViewController with SwiftUI # If you are curious like me, you must have tested SwiftUI. Personally I like this framework more and more. But I will tell you about my feedback in another article. However I have to reproach it for something: it still lacks a lot of things! And yes, SwiftUI tries to join all the worlds (iOS, macOS, …) in one. The problem is that the task is not easy.

Swift: bounds vs frame

·313 words·2 mins
Have you ever made an iOS app with UIKit? Have you ever made your own views? Customized a user control or a view? Then you have probably already been in contact with the frames and bounds. But how well do you know them? Do you really know the difference between the two? I noticed that for many the answer was: No. So let’s go back to these notions to learn more.

UITextField bug 😱

·156 words·1 min
You may have already had it but there is a bug on UITextField only on iOS emulators (iPhone and iPad). It may happen that when you select a UITextField your application freezes like the picture below: Now that your application looks like this, you cannot do anything and you have to restart your application. via GIPHY This is a bug known by the Apple team and originally seemed to affect only the iOS 13 version.

2021


Swift : Async unit tests

·481 words·3 mins
In software development there is one thing that is difficult to achieve : quality. Anyone can code but few are able to code good software. When I say good I mean robust, stable and malleable according to the necessary evolutions. But to guarantee such a quality you need tools. Beyond the timeless design pattern, debugging tools or other, there are especially unit tests. Of course making an iOS application in Swift is no exception to the rule.