An Adaptable Segmented Control
Jul 6, 2020, 8:00 PM
On iOS, especially on iPads, the dimensions of the size of the views we work with have, over the years, become increasingly flexible and varied. Additionally, accessibility features, like dynamic, user controllable font size have been...
Mar 17, 2020, 8:00 PM
Sometimes, using floating point arithmetic (e.g using float or double types) just doesn’t cut it. Floating point values cannot represent all values accurately, and if you start adding/subtracting/multiplying/dividing such values it is very...
Jul 6, 2019, 8:00 PM
Continuing on our previous post, let’s create some observable controls, and a view controller that observes another view controller.
Observers as an alternative to delegates
Jul 6, 2019, 8:00 PM
Recently I started studying Ray Wenderlich’s tutorial book RxSwift. Early on, the book suggests using Rx as an alternative to delegates and their associated protocols. I though, great, but, for the task at hand, that’s a rather heavy...
A Scrolling Stackview
Dec 23, 2018, 7:00 PM
Some months ago I read this article by Agnes Vasarhelyi. It’s about–guess what–scrollable UIStackViews. More precisely, it’s about how to correctly set up a UIStackView within a UIScrollView, using autolayout. Not long after that, I needed...
Oct 31, 2018, 8:00 PM
So you’re building your app, and have a navigation controller, and sometimes you need to know when the controller is about to navigate, or has just finished navigating. Well, there’s a great built in API for that, right?
Mini Auto Layout DSL Revisited
Jan 5, 2018, 7:00 PM
After the previous post, and despite the positive feedback, I wasn’t quite satisfied yet with the result and felt the code could do with some improvement. As I looked again at the NSLayoutAnchor header, I realised I had left out a bit of...
Mini Auto Layout DSL
Dec 26, 2017, 7:00 PM
Not too long ago Chris Eidhof posted about making auto layout a bit easier by creating a Micro Auto Layout DSL, hinging on keypaths. In his post Chris suggested we add a few obvious extensions to his work, as an exercise. Sure, but I’d...