Software Dev

Autoresizing at a glance ⍈

Kicking off the iOS development “at a glance” series, we’ll start pretty basic: autoresizing.

Autoresizing was Apple’s first shot in the days of yore (iOS 2, circa 2011) at letting early iPhone views rearrange themselves (this is the “auto” part) in response to screen rotations. It was limited and clumsy, as was pretty much all of iOS at the time. Mail, contacts, calendars, and the App Store were new features on the iPhone.

So autoresizing makes for a fitting intro to this series.

Autoresizing allows the developer to specify how one view relates to its super-view as far as its size and margins, and which parts are are flexible vs. fixed.

In the days since autoresizing was introduced, more capable layout tools like Auto Layout with constraints and now SwiftUI have been introduced.

But you’ll still see the autoresizing “mask” (an old-school programming term) hiding out in the Size Inspector in Xcode under the View section. If you wondered what that was, now you know.

Drawings

Austin river sketch ✍️

Playing around with this Sketches app on my iPad, today’s goal was a to learn how to “trace” something by hand. But what? I needed something simple to start.

The Colorado River snaking its way through my city of Austin, Texas came to mind for its irregular curves. Using a Maps screenshot of Austin and layers in the Sketches app with my nifty new  Pencil, I got a rough but realistic hand-drawn shape of the river.

Then I used the app’s ruler, fill, and text tools to make a quick, fun sketch of my town by neighborhood.

Here’s the project with the Maps screenshot layer shown.

creativity · Quotes

“The world always seems brighter when you’ve just made something that wasn’t there before.”

I think Neil Gaiman pretty well captures the magic of creation with this quote.

The world always seems brighter when you’ve just made something that wasn’t there before.

Neil Gaiman

Turns out the dude can also draw, at least in a sketchy kind of way that I hope to master someday as well, if only for practical purposes.

From The Art of Neil Gaiman

I love the anecdote about writing a short story for his daughter’s 18th birthday that Daily Inspiration added for context on this quote.