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
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`)
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
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.
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
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.
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
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 😅
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
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.
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
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.
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
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...
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
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.
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
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...
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
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...
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
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...
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
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).