Using #SwiftUI s relatively new `ImageRenderer` I made an open source library like @Remotion & @redotvideo so you can easily make dynamic videos with SwiftUI. Specify the frame rate, dimensions, duration and you can spit out videos easily. This video is a simple SwiftUI view. Check it out here: https://github.com/StreamUI/StreamUI and give me ideas for videos I should make and i'll make them and post here :)
GitHub - StreamUI/StreamUI: 🎥 〜StreamUI: Make videos with SwiftUI (and even stream them to Youtube, Twitch, etc)

🎥 〜StreamUI: Make videos with SwiftUI (and even stream them to Youtube, Twitch, etc) - StreamUI/StreamUI

GitHub

@jordaneh I'm familiar with neither project that's referenced 🤔 Can you export animated views as videos, and if set up correctly as GIFs even?

Would be cool to generate GIFs for tutorials and documentation of some code and how it behaves.

@ctietze Animations should work! I want to add a few examples with animations so when I add those I will ping you. And gif output is a good idea, I didn't consider that. That should be pretty easy to add, i'll look into that. There are some limitations of `ImageRenderer` depending on the use case. I talk about it a bit here: https://github.com/StreamUI/StreamUI?tab=readme-ov-file#supported-swiftui-views--limitations
GitHub - StreamUI/StreamUI: 🎥 〜StreamUI: Make videos with SwiftUI (and even stream them to Youtube, Twitch, etc)

🎥 〜StreamUI: Make videos with SwiftUI (and even stream them to Youtube, Twitch, etc) - StreamUI/StreamUI

GitHub
@ctietze So was looking a bit more into it. Animations are a bit annoying, but definitely work. This blog goes into a bit more detail: https://eschmann.dev/2023/03/render-xcode-playground-animation/#full-animation-loop. I can probably build some helpers to simplify things like this too
Render SwiftUI animations to mp4 in Xcode playgrounds :: eschmann.dev

Simple approach to render each frame of a SwiftUI animation to a png file. And how to assemble the frames into an mp4 video. ~ eschmann.dev

eschmann.dev