@ronnqvist My bug was that I was getting a height constraint set on the view (despite the flexible height mask).
Switching to pinning the 4 edges Fixed Everything™. Just another sign to me that we should be using AL directly instead of trying to shortcut through resizing masks
This is kind of a "well, duh" moment for me, but I *just* realized that setting a "flexible width, flexible height" autoresizing mask and translating into constraints is NOT the same thing as pinning the top, bottom, leading, and trailing edges.
Finally found the source of a bunch of minor layout issues
I just realized you can add init() methods to `Never` in an extension.
As long as you fatalError() in there, the compiler is totally fine with it.
This is very very interesting to me.
If you're interested in the slides I presented at #NSSpain on "A Better MVC", I've actually uploaded them for once:
I put in some extra effort to replace animations w/ arrows in the pdf so you can kinda sorta get the same effect. #YoureWelcome
@geekygent Alternatively if you prefer reading, I've got a series of blog posts on the idea (although my ideas have evolved over time, which I try to capture).
@geekygent boy have I got a conference talk for you... 😉
Basically, I avoid Massive View Controller through a lot of application of child view controllers and small, single-purpose view controllers. All business logic gets moved out of them to higher levels
Check out any of the "A Better MVC" videos linked to here: https://davedelong.com/cv/
(The #NSSpain one will be up in the next few days)
It's basically the idea that, to me (and you're welcome to disagree cuz you know we're all human), a UIView is a *static* thing. You give it text/colors/images to show, and that's it.
To me, *mutating* that, whether immediately or w/ animation, does not belong in a "static" UIView, but belongs to that view's UIViewController.
Thus, UIViewController is responsible for shoving data into your UI and shoving *around* your UI, and not much else. To me, that makes it a View.
I would love to see an Apple Watch charger that was just the puck with a lightning connector hole on the side, so I could plug it in to a lightning cable.
I filed a radar on this years ago, but I think it got closed. I don't really know why though; this would be amazing to toss in my Bag O' Dongles.
He's just this guy, you know?
Follow friends and discover new ones. Publish anything you want: links, pictures, text, video. This server is run by the main developers of the Mastodon project. Everyone is welcome as long as you follow our code of conduct!