Show HN: I made an elegant SwiftUI timeline
github.com
github.com
Simplest form: ffmpeg -i foo.gif -c:v libx264 -crf 22 foo.mp4
You can vary crf to change the size to quality trade-off.
I know you want to show off the buttery smoothness of your animations, but do you really need to dump >200MBs of gifs on that single page?
Holy laptop fan smoke!
Maybe safari is more optimized for gifs?
Please put that in your title.
The really quick fix is just to replace the images with links to the images. Anything fancier (like replacing them with static images and links to actual videos rather than GIFs) can come later.
Please. I’m not trying to be mean in any way, but words are failing me at just how bad this is. You just don’t do this sort of thing. Entirely genuinely, you have probably directly cost at least a dozen people a few dollars with these GIFs, and measurably (sometimes seriously) inconvenienced dozens more for up to a month due to limits reached or approached.
(It's mentioned in the README, but thought it was worth calling out.)
SwifUI is a breath of fresh air compared to xcode builder, that giant unmergeable xml and the constraint madness where really clumsy to work with.
I'm always very careful whenever apple release new technologies for devs. They promote it heavily but actually nobody uses it inside, and it's up to the community to go through all the bugs.
Large chunks of macOS 11 and iOS 14 are built with SwiftUI, and it's the only way you can build the newer style of widgets on both platforms. They're actually pretty aggressively dogfooding it.
They were slow to pick up Swift internally because they needed ABI stability, but no such barriers exist for internal adoption of SwiftUI.
Overall I think it's a great step forward