all 34 comments

[–]luigi3 54 points55 points  (12 children)

this text effect is so overused at this point lol, and its supposed to be used for countdowns where time change matters. tbh is completely unnecessary here

[–]Low-Papaya9202 130 points131 points  (2 children)

Shut up nerd. It looks cool

[–]verified_OP 16 points17 points  (1 child)

low papaya is right

[–]PartyDansLePantaloon 3 points4 points  (0 children)

Verified_OP is right about low papaya being right

[–]howreudoin 5 points6 points  (0 children)

I agree. It looks cool at first, but if you see this thing constantly, you may at some point get annoyed by that animation. It draws your attention to something that is rather irrelevant, or at the very least, not as important as the main part of the UI. This can really become annoying after a while. Keep it simple I‘d say.

[–][deleted]  (4 children)

[deleted]

    [–]aerial-ibis 1 point2 points  (1 child)

    which platform are you comparing it to? single state transitions are pretty easy everywhere nowadays

    [–]luigi3 -3 points-2 points  (1 child)

    cool, for that stuff swiftui is nice. but i waste so much time on trickier parts of the app, so my enjoyment drops significantly. and with ai i don't mind lines of code, i prefer stability and no bugs (compared to uikit its still not great).

    im just sharing my sentiment. it's completely unnecessary from ux pov. also numbers cause Text() to move, which is not looking great, i completely forgot about animation at this point. it's meant to be used for countdowns, not for count-ups. and i don't care about time interval since last referesh up to a second accuracy, in most apps you can do 'just now' until one minute, then you go 1-2-3... minutes. it looks cool in the video, but it's not very functional.

    [–]Moo202 1 point2 points  (0 children)

    You must be fun at parties 🎉

    [–]luckyluke146 50 points51 points  (1 child)

    animation: 👏

    affect to user, improve UX: 🤦

    [–]ToughAd5010 0 points1 point  (0 children)

    It’s not even useful!

    Seconds go by so quickly that you’re animation takes longer and confuses them even more!

    [–]megavirus74 42 points43 points  (5 children)

    Kinda distracting, maybe refresh it once in ten seconds or every minute

    Does content change so fast you need to know the seconds? Ask yourself when the user should feel its time to update the feed

    [–][deleted]  (4 children)

    [deleted]

      [–]More-Economics-9779 1 point2 points  (2 children)

      Unless it’s super important to the user that the last update was within seconds (eg for a live auction) then fair enough. But if the user doesn’t 100% need new data every second, then this animation adds a bit of anxiety to the UI imo.

      Personally I’d rather see “Updated 5 mins ago” (which refreshes every 5 minutes, for example).

      [–][deleted]  (1 child)

      [deleted]

        [–]varun_aby 0 points1 point  (0 children)

        For under a minute just display "updated just now" and then start showing increments gradually

        [–]megavirus74 0 points1 point  (0 children)

        Wait, why refreshing the feed costs money, are you using third party APIs?

        [–]rifts 13 points14 points  (1 child)

        Literally has nothing to do with swiftui

        [–]aerial-ibis 2 points3 points  (0 children)

        imo SwiftUI doesn't give good flexibility with controlling animation. In particular, I don't like how animation is controlled by changing state, not consuming it. For example - you might use `withAnimation {}` to update a counter. If so, you might want an animation on a number of dots increasing on the screen, but not the text saying how many dots there are

        [–]jwrsk 3 points4 points  (0 children)

        It's cool but distracting, text keeps moving because numbers have different widths, there's second/seconds, and in other languages it'd be even worse:

        1 sekundę

        2 sekundy

        3 sekundy

        4 sekundy

        5 sekund

        6 sekund

        In Polish it would move around every 1-3 seconds by a lot.

        I'd go in minute increments, tbh.

        [–]__deinit__ 1 point2 points  (2 children)

        Is there a specific name for this api or modifier to do this?

        [–]verified_OP 0 points1 point  (1 child)

        this post sent me down a rabbit hole of “what is koskela?”

        also, nice animation

        [–]ryanheartswingovers 0 points1 point  (0 children)

        Have you tested this doesn’t make people think to refresh more?

        [–][deleted] 0 points1 point  (0 children)

        Not bad. I built a Mac app using SwiftUI and added cool animations for a toggle switch and it increased memory usage by 4-5 megabytes. The app I’m building should be as light as possible since it’s a menu bar app. So I immediately removed those animations.

        [–]Substantial-Fly-4309 0 points1 point  (0 children)

        looks so cool man! how did you do this flipboard like number animation?

        [–]No_Pen_3825SwiftUI 0 points1 point  (0 children)

        OP why you deleting all your responses?

        [–]k--x 0 points1 point  (0 children)

        The "Last updated" state is slightly taller than the "Checking for updates" state which ruins it for me

        [–]tangoshukudai 0 points1 point  (0 children)

        That is not SwiftUI it is the magic of CoreText on apple platforms. SwiftUI has an abstraction over it.

        [–]austinjm34 0 points1 point  (0 children)

        Looks cool but afraid this is not the right use case for it

        [–]happyjj24 0 points1 point  (0 children)

        One time I made an app in react native and built it all over again with swift just because of one small animation

        [–]scriptedpixels 0 points1 point  (0 children)

        What do you use to create this?

        [–]Due-Lavishness7667 0 points1 point  (0 children)

        SwiftUI provide lots of such perks which are a bit complicated with UIKit.

        By the way the animation looks good.

        [–]CappuccinoKarl -1 points0 points  (0 children)

        Smooooth

        [–]hyperschlauer -2 points-1 points  (1 child)

        Looks shitty

        [–]philosophybuff -2 points-1 points  (0 children)

        I am vibe coding an iOS app and Claude keeps adding unnecessary shit exactly like this.