5 ms·
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:
by alin23 3y ago
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.
- emllnd 3y agoCould 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
- alin23 3y agoDoes it not appear on the top right for you? https://shots.panaitiu.com/8BvwKN7N https://shots.panaitiu.com/8BvwKN7N
- serhack_ 3y agoVery hard to read it, please change the color. Thanks, my eyes
- deleted 3y ago[deleted]
- alin23 3y ago..I prefer to keep it dimmed, in my eyes it does not have the same importance (and brightness) as the article itself.
- lylejantzi3rd 3y agoIt completely disappears on a mobile browser. https://imgur.com/GgDdUWM https://imgur.com/GgDdUWM
- alin23 3y agoIndeed, I’ll fix that. Thanks!
- lylejantzi3rd 3y agoAnytime! I love your blog and I'm a happy Grilla user.
- brailsafe 3y agoIs 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
- alin23 3y agoProbably just pasted a style from another element and forgot to adjust this specific thing. I’m fix it.
- deleted 3y ago[deleted]
- deleted 3y ago[deleted]
- sumuyuda 3y agoHave 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.
- brandonasuncion 3y agoJust 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/equatable() 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-swiftui-using-equatableview/ https://swiftwithmajid.com/2020/01/22/optimizing-views-in-sw...
- praveenperera 3y agoDo you think the new `Observable` macro in iOS 17 would help at all?
- DelightOne 3y agoDid 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).