Code
Smoke Framework
First IBM, and now Amazon with a new server-side Swift framework. The big players are certainly interested in Swift on the Server. This isn’t a framework for building web apps so much as something to help you with a quick REST server, but isn’t that what a lot of iOS apps need?
UIFontMetrics and Dynamic Type
I missed this when it was first published but it was brought to my attention again this week and it’s great. I’ve linked to posts about dynamic type and custom fonts before, but never anything as comprehensive as this from Dave Lyon. It starts with the basics of scaling a font, but finishes with a simple custom label that’ll allow you keep dynamic type, with custom fonts, in Interface Builder. π
Empowering NSAttributedString
My first thought when I read this post from Ennio Masi was that I am very grateful that I haven’t had to work on an app which included text from two different scripts in the same UI. Then it made me think how glad I’d be for a framework like CascadeKit when I understood the problem properly.
HapticTouchGestureRecognizer
From what I can gather, the “Haptic Touch” of the iPhone XR is simply a long press with a haptic tap at the end. If you want to implement it in your own apps, this gesture recogniser class from Aaron Brager will do exactly that for you.
Migrating to Swift
Really interesting post from John Scott about migrating his app, Herd from Objective-C to Swift. He approached it in a very clear, systematic way and the result was a success. This line stood out to me as the best advice of the article though:
To summarize, this project would have been a failure if Iβd tried to redesign the app while migrating.
Absolutely. One step at a time!
Source link https://iosdevweekly.com/issues/373