vknabel
vknabel
Valentin Knabel
Developer, cyclist, coffee nerd, human. Open Source, kindness, honesty, vegan. It is fine to be imperfect, as long as we are honest and have fun along the way.
Latest Posts
When maintaining multiple locales within your project, try to keep line numbers consistent across all locales. Also keep the order of translations consistent. That makes differences easy to spot.
Nothing new today, but a quick reminder: Even if you don’t need to explicitly localize String literals for Text manually, you can still need to when passing Strings to UIAlertController or other UIKit classes. Of course. But sometimes I...
ftp-simple allows opening FTP connections as VS Code workspace!
Localizable.strings doesn’t support unicode \unnnn escapes, but only \Unnnn! In Swift the \U is for UTF-16 escapes like \Unnnnnnnn.
How to detect a URL in a String using NSDataDetector - free Swift 5.1 example code and tips https://www.hackingwithswift.com/example-code/strings/how-to-detect-a-url-in-a-string-using-nsdatadetector
The Android Studio tooling for Android apps checks and validates all translation keys. Even if they are present within the base language. This comes in handy after greater refactorings. But sadly the XML does not support XML escapes as...
This cheat sheet is actually not bad! https://fuckingswiftui.com/
UIView animate does not delay if there are no changes. The completion block will be called immediately!
When setting the background color randomly in SwiftUI, you will be able to detect every single repaint! Might be helpful while debugging. https://twitter.com/steipete/status/1379483193708052480?s=12
UIImageView image is not animatable. Instead use transitions!
Wnat your UICollectionViewCell transparent? Set alpha on contentView! => Setting alpha on the UICollectionViewCell itself doesn’t work.
An [unowned self] in a Coordinator is okay. As the coordinator should live longer than any of its screens, a crash hints to lifecycle issues.
When developing Swift in Visual Studio Code there were a few cases, where I preferred Xcode. Beside the obvious cases like iOS Development, managing certificates and provisioning profiles, there was one big case left: Writing unit tests....
The past few days I created a new server using Vapor and hit vapor new <project> --auth which created a Vapor 3 server. Later I upgraded the young project to Vapor 4, but found some lack of practical information about the upgrade on the...
Editors like Visual Studio Code live from a wide range of extensions and customization. In contrast there are IDEs like Xcode and AppCode, which have everything set up and are ready to go. In order to provide a rich set of features, they...