Software Dev

Scroll Hitch Rate

Xcode 12 is adding a new metric to objectively track how smoothly your app scrolls. This is kind of cool since scrolling smoothness feels right and is a sign of a good design.

Via iOS Dev Weekly.

Software Dev

Frame vs Bounds in iOS

Frames and bounds are a really core concept in iOS development. They are both just rectangles in different coordinate systems. Simple, right? Well, not always. πŸ€¦πŸ»β€β™‚οΈ

If you ever still get lost on frames vs. bounds in iOS development, here’s a good quick summary.

πŸ‘‰ Frame vs Bounds in iOS

And here’s a good example of how a transform can affect the frame and bounds differently, via iOS Dev Weekly.

πŸ‘‰ CGAffineTransform and Auto Layout

Software Dev

Scroll Views in Interface Builder

There are a couple of tricks to getting your scroll view working in an Xcode storyboard. The great fluffy.es blog carefully walks you through it. πŸ‘

πŸ‘‰ How to use scroll view in Interface Builder / Storyboard (Xcode 11)

This site also has some really helpful notes on intrinsic size. And a great series on Making Sense of Auto Layout. Who knew? This guy is good. He’s giving Ray Wenderlich a run for his money. 😲

constraint explanation
Software Dev

Xcode Build Time Optimization

Build-time optimization is not my favorite topic. It is truly not sexy. πŸ€·πŸ»β€β™‚οΈ I just want to write good code and run it without worrying about complier options and other distractions.

But I must admit that unless you love sitting around on your hands waiting to test your latest code change, this is good info to know. β±πŸ€“

This post explains exactly how to measure build times, target by target and task by task. Also, how to set up warnings for specific files taking a long time to process. You can even get a nice visual report like this:

πŸ‘‰ Xcode Build Time Optimization

And Part 2 gives you guidance on build settings optimizations, source code improvements, and project enhancements.

Via iOS Dev Weekly.

Software Dev

Easy Xcode Quoting

This is one of those shortcuts in Xcode that saves a tiny amount of time but feels amazing. Via iOS Dev Weekly.