Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

Author here! To this day, the app still struggles with sales because of the lag.

Many smart devs tried to help me, and I added some of their recommendations:

    - caching views to a bitmap using Metal
    - trying smaller windows so that less pixels have to be redrawn
Unfortunately nothing made a noticeable difference, this will have to wait until I get a really boring weekend.


Just curious, but have you tried the `equatable()` modifier?

It's doc description seems to be closer to what you need than the `id()` modifier.

<https://developer.apple.com/documentation/swiftui/view/equat...>

> Prevents the view from updating its child view when its new value is the same as its old value.

Also, https://swiftwithmajid.com/2020/01/22/optimizing-views-in-sw...


Did you try to use something like TCA? You can scope the stuff you need to exactly only re-render what you need. Otherwise re-render the world on ObservableObject etc. Observable only alleviates the scoping-part a little and does not help with re-render the whole body.

Some things still re-render the world and are VERY slow though (ifs/switch inside ForEach with many rows easily brings app to hard lagging, even if doing everything to prevent it -> makes SwiftUI useless for generic row usecases).


Have you tried switching to AppKit?

Seems like the app doesn’t have a huge amount of UI and could be converted in a few months.


Do you think the new `Observable` macro in iOS 17 would help at all?


Could you add the date of publication to the top of the page on each blog post? (Or year+month.) Looks like they’re there in the blog list, but not on the individual posts?

Would help understand the context on posts that describe tech that has evolved rapidly and probably still will


Does it not appear on the top right for you? https://shots.panaitiu.com/8BvwKN7N


It completely disappears on a mobile browser.

https://imgur.com/GgDdUWM


Indeed, I’ll fix that. Thanks!


Anytime! I love your blog and I'm a happy Grilla user.


Is there a reason you're hiding the date on narrow viewports? Seems odd that on my phone it's only visible if I rotate to landscape


Probably just pasted a style from another element and forgot to adjust this specific thing. I’m fix it.


Very hard to read it, please change the color. Thanks, my eyes


..I prefer to keep it dimmed, in my eyes it does not have the same importance (and brightness) as the article itself.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: