If there’s one thing I’ve learned from heavy Cocoa/AppKit programming in the past year is: Look for system solutions to your problem.
When writing my previous apps I’d always look for the easiest solution to the issue I had, when many times the system provided a facility that solved it.
Now I’m trying to apply these learnings back to iOS, and it’s working!
For example: If you’re going to pin a view to a parent and match its bounds, there’s no reason to set “translatesAutoresize…” to false and crate custom constraints. The autoresize constraints will do that for you if you set the view’s frame to the parent’s bounds before adding it as a subview. Less code, same effect.
The social network of the future: No ads, no corporate surveillance, ethical design, and decentralization! Own your data with Mastodon!