Live data from Hacker News

Show HN: I made an elegant SwiftUI timeline

github.com

41–46 of 46 posts

Re: Show HN: I made an elegant SwiftUI timeline

#41
post #12
post #10

this looks amazing! (beware on mobile for giant gif size) 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.

Are you using it for actual apps in production ? 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.

I'm using it to port an auv3 plugin to a standalone app. The overall experience is amazing when compared to the constraint based method proposed in previous xcode versions. There are parts missing, but it's fairly easy to wrap uikit components and use them in swiftui

Overall I think it's a great step forward

Re: Show HN: I made an elegant SwiftUI timeline

#43
post #39

FYI you can use ffmpeg to encode gif as h264/h265 mp4 videos of varying quality or convert to webm which can be played from an img tag, all of which will be orders of magnitude smaller. 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've replaced most of the gifs with embedded videos. Page loading size is around ~100 mb now

Ok holy shit. Mp4 compression then converting to gif is the holy grail. 1/3 the original size wtf.

Re: Show HN: I made an elegant SwiftUI timeline

#44
post #39

FYI you can use ffmpeg to encode gif as h264/h265 mp4 videos of varying quality or convert to webm which can be played from an img tag, all of which will be orders of magnitude smaller. 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've replaced most of the gifs with embedded videos. Page loading size is around ~100 mb now

That’s still very unreasonably large and is going to cause real problems for some users, though not as many (and is still going to be uselessly slow to load for many—much of the world, including where large numbers of developers, even SwiftUI developers, are, doesn’t have multi-megabit-per-second speeds). Look, even 20MB is too large. Please, I beg you, just don’t put any GIFs on that page: just make it clear that it’s a video, e.g. by overlaying a circled play icon on the image and making it a link to the relevant video on YouTube.

Re: Show HN: I made an elegant SwiftUI timeline

#45
post #10

this looks amazing! (beware on mobile for giant gif size) 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.

It's a neat technology but still quite infant. I've heard that it currently takes longer to implement a non-trivial UI due to the compiler errors, documentation gaps, and bugs with the framework. Patience is required.

The latest stuff in beta since WWDC makes a world of difference. It’s a joy to play with, and I haven’t encountered any of the impenetrable compiler errors that the last version had.

Re: Show HN: I made an elegant SwiftUI timeline

#46
post #45

Earlier quoted context omitted.

It's a neat technology but still quite infant. I've heard that it currently takes longer to implement a non-trivial UI due to the compiler errors, documentation gaps, and bugs with the framework. Patience is required.

The latest stuff in beta since WWDC makes a world of difference. It’s a joy to play with, and I haven’t encountered any of the impenetrable compiler errors that the last version had.

Pohl?
Post reply on HN