Sign in

robb

@robb.is
1.6K followers 152 following 185 posts

SwiftUI and iOS shenanigans @ Linear.app • I put the UI in Ennui • today your love, tomorrow the world • previously: SwiftUI, Google Research, UIKit. robb.is

PostsRepliesMedia
robb @robb.is · 15/09/2026
Updating our custom #swiftui glass material for iOS 27
060
robb @robb.is · 29/07/2026
TIL San Francisco has a Contextual Alternative glyph for ƒ preceding numbers, in case you're talking about apertures like ƒ2 – sweet
151
robb @robb.is · 16/10/2025
Today, we've updated Linear Mobile with an all-new design that looks great on iOS 26, and thanks to the powerful APIs #SwiftUI has been adding over the past few years, we're bringing it to iOS 18 with zero compromise. Get the update here: apps.apple.com/app/linear-m...
An iPhone with shallow depth of field, in the foreground, the bottom of the screen shows the new iOS 26 style tab bar of the Linear iOS app.
2122
robb @robb.is · 29/06/2025
I'm working on a post on how to implement the iCloud Sign In animation in #SwiftUI – coming soon to patreon.com/swiftui_snippets
0270
robb @robb.is · 01/06/2025
Hell froze over, I made a macOS app! github.com/robb/FolderI... Use it to generate custom folder icons that match the ones found on macOS Sequoia.
Screenshot, macOS

A small app called Folder Icon Generator, it shows a preview of a normal macOS folder with a custom icon in the style of system folders like Downloads or Desktop. The icon is the Tapback icon for HA HA.

Below that, a text field labeled Symbol Name with a value of "laugh".

Below that, a link to an article about changing folder icons and a by-line.
2647
robb @robb.is · 17/04/2025
And here's the whole thing in action
0130
robb @robb.is · 17/04/2025
When animating a count in #SwiftUI, use `monospacedDigits()` so the frame doesn’t change as frequently – however, that can leave leading 1s look disconnected so I'm skipping it for the first digit while keeping formatting intact gist.github.com/robb/f8fdcca...
Screenshot, iPhone.

An inbox icon with centered 10 inside a light blue badge. There’s a lot of unbalanced space around the 1.Screenshot, iPhone.

An inbox icon with centered 10 inside a light blue badge. The 1 is positioned decently well inside the shape.
190
robb @robb.is · 17/04/2025
If you're trying to like, *really* center Text in #SwiftUI, use a TextRenderer to disable subpixel quantization:
Screenshot, iPhone.

An inbox icon with an ever so slightly off-center 9 inside a light blue badge.Screenshot, iPhone.

An inbox icon with centered 9 inside a light blue badge.
1280
robb @robb.is · 03/03/2025
I've published a new #SwiftUI Package to automatically visualize touches during Screen Recording, Screen Mirroring and when using the iOS Simulator: github.com/robb/visuali...
1364
robb @robb.is · 02/03/2025
You’ll find the value is only dependent on the radius, so you can just multiply with the radius instead of creating a whole Path and taking it apart. (unless of of course, it crosses the midpoint of the shortest edge)
100
robb @robb.is · 02/03/2025
If you create a 9-slice from a rounded rectangle you created on iOS, you need to take into account that the distance from the corner to the first axis-aligned control point is about 152.866% of the radius. I found this value through some empirical computer science in a quick #SwiftUI preview.
1150
robb @robb.is · 19/01/2025
Using #SwiftUI’s UIGestureRecognizerRepresentable and Anchor Preferences, you can build a ButtonStyle that is triggered by a long-press in a parent view in addition to regular taps. This enables building custom menus like this that allow triggering an action with a single long press.
0507
robb @robb.is · 01/01/2025
Work-in-Progress #SwiftUI glitch effect featuring chroma subsampling; random offsets for lines, blocks and pixels; chromatic abberation in YCbCr as well as RGB channel shuffling.
3361
robb @robb.is · 09/12/2024
Screencap, Hans Moleman from the Simpsons epsiode "A Star Is Burns" Season 6 / Episode 18.

Caption reads "I was saying Nein Neins"
010
robb @robb.is · 08/12/2024
A screenshot of a direct message in which a person wrote, "I ain't reading all that. I'm happy for u tho. Or sorry that happened."
110
robb @robb.is · 08/12/2024
The SVG effect on display here is a group of feGaussianBlur ➝ feColorMatrix ➝ feOffset filters grouped in a feMerge. That translates 1:1 to GraphicsContext.Filter.blur, .colorMatrix and . projectionTransform drawn on top of each other.
0131
robb @robb.is · 07/12/2024
Pro Tip: you can, like "Right-click, View Source" on the web and port your favorite SVG effects to SwiftUI as their graphics primitives are very similar.
Screenshot, Firefox showing a marketing page for the iPhone 16 Pro. The words "Strength. Beauty. Titranium." are visible with Titanium glowing in a sandy titanium color.Screenshot, iOS Simulator. The words "Blur. Translate. ColorMatrix." with ColorMatrix glowing in a sandy titanium color.
1301
robb @robb.is · 07/12/2024
Luckily, all these primitives translate really well to GraphicsContext.Filer
Screenshot, iOS Simulator. The words "Blur. Translate. ColorMatrix." with ColorMatrix glowing in a sandy titanium color.
010
robb @robb.is · 05/12/2024
Quick tutorial how the stitching was achieved: - Use `strokedPath(_:)` to split the path into multiple lines, using a two-component dash array. - Convert to a CGPath, split it into subcomponents using `componentsSeparated(using:)`. - Apply a rotation to each line. - Merge them back together.
1696
robb @robb.is · 05/12/2024
Thanks to #SwiftUI 's powerful graphics APIs, I am this close to retiring my copy of Photoshop CS6 for good 🤏
Screenshot, iOS Simulator. A rounded rectangle of brown, stitched leather with an embossed SF Symbol of a parent and child holding hands, rendered in a tacky style that was en vouge in the dawn of the skeumorphic age.
1315616
robb @robb.is · 03/12/2024
This kind of smart, walkable, mixed-use urbanism is illegal to build in many American cities
Screenshot, The Settlers 2
0170
robb @robb.is · 26/11/2024
If you liked xCode, you'll love
Screenshot. Part of a web page labeled “technologies used on the job” in German followed by Swift, swiftUI (spelled with a lowercase s) and UIkIt, spelled capital U, capital I, lowercase k, capital I, lowercase t.
2150
robb @robb.is · 16/11/2024
I reimplemented the iconic Family App label using SwiftUI's TextRenderer
2354