Chris Eidhof
eidhof.nl
Chris Eidhof
@eidhof.nl
Working on my @omt-conf.bsky.social presentation...

(Feeling a bit like that guy from the meme).
May 31, 2025 at 5:31 PM
I've been playing around with this tool to record and play back my typing. I took inspiration from Retcon and made the history draggable.

Things like automatically doing the indentation / syntax highlighting quite don't work yet, but those are the "easy" polishing bits.
May 22, 2025 at 11:35 AM
The `Animatable` protocol lets you hook into the animation subsystem of SwiftUI. You can expose any property using `AnimatableData` and have it interpolated for you (but the property does need to conform to `VectorArithmetic`)
December 19, 2024 at 12:36 PM
Keyframe animations are a very powerful tool to have in your toolbox. They're more complicated than regular SwiftUI animations but allow you to animate almost anything you can think of.
December 18, 2024 at 8:22 AM
Phase animators can help to work around the limitations of the regular SwiftUI animation system. They let you do animations that end up in the same state as the starting point.
December 17, 2024 at 11:31 AM
In many cases, adding a `.animation` or `withAnimation` might be all you need to have beautiful interruptible animations in SwiftUI.
December 16, 2024 at 7:54 AM
Today we recap a bunch of things we looked at in the last two weeks of short videos. It was a bit of a struggle to get this in at under one minute but I managed 😅
December 13, 2024 at 10:00 AM
Often it doesn't really matter whether you use an overlay or a ZStack, but if the views have different sizes and positions, it definitely does!
December 12, 2024 at 10:11 AM
Explicit alignment guides are very helpful when aligning using two different alignment guides. In this example, we align the center of a badge to the top trailing edge of a button.
December 11, 2024 at 8:00 AM
First text baseline alignment is a great way to align views horizontally that contain different font sizes. SF Symbols even have builtin support for this.
December 10, 2024 at 7:38 AM
In our workshops we often notice that view alignment is underused. This week's short videos will mostly look at working with alignment. This video shows aligning stacks, frames and overlays. Here's the corresponding SwiftUI Field Guide page: www.swiftuifieldguide.com/layout/align...
December 9, 2024 at 10:14 AM
Managed to wrap GraphViz to lay out a DAG. All the drawing itself is SwiftUI. This still calls out to the binary (which you need to have installed). Would be nice to wrap the GraphViz C library as a Swift Package so I can ship this in our workshop app.
December 9, 2024 at 9:28 AM
One of the must underrated views in SwiftUI might just be the `Text` view. It's a perfect example of progressive disclosure: once you dig in, you'll find a bunch of nice features! Related to the video: developer.apple.com/documentatio...
December 6, 2024 at 8:42 AM
would it help to do it like this (not setting disabled if the parent is already disabled?)
December 5, 2024 at 9:30 PM
In this example, we show the sizing behavior of an `Image` view in SwiftUI, and how you need to be careful when using aspectRatio. It might draw out of bounds. See also: www.swiftuifieldguide.com/layout/aspec...
December 3, 2024 at 7:56 AM
Here's an experiment: I made a short video to show how to use a `frame(maxWidth:)` to accept the full width. Here's the accompanying SwiftUI Field Guide page: www.swiftuifieldguide.com/layout/flexi...
December 2, 2024 at 8:22 AM
This is the graph that my (tiny) code produces. At least one thing I have in common with the real AG is that it starts to look complicated quickly 😅 (the graphs are quite different, so I'm still doing something wrong).
November 27, 2024 at 8:21 PM