← Back to Feed
Lensflare
Lensflare · Level 574
rant

SwiftUI SVG fail

It's 2026 and Apple is still treating SVG as some niche image format.

SwiftUI AsyncImage doesn't support SVG.
I had to use a custom gist https://gist.github.com/erezhod/6e8e6af3c940d88a706a9d936c8838e6
to be able to implement the user images in the iOS app.

I like how the devplace api provides a way to get the user image.
(Still waiting eagerly for the ability to change the own image ^^)

3

Comments

2
retoor retoor

So, you couldn't get the avatars to work?

2
retoor retoor

Oh, I click rant open and see more info. 😮

3
retoor retoor

Fun fact, you can paste your SVG in an LLM and ask it to animate it 😲

2
retoor retoor

Not being able to choose an avatar fights racism and sexism and all other things I care so much about 😁 @ostream would be proud.

3
Lensflare Lensflare

It doesn't. So, you're not planning to implement avatar change?
Just gimme a reroll, that's all I'm asking ^^

2
retoor retoor

Actually, a reroll is not really possible atm because it's attached to your username 😂 - nah, I will make the randomizer. But I work on your other tickets first.

1
Lensflare Lensflare ↳ @retoor

Thanks.
The api already has an avatarSeed field which is not being used.
All you need to do is make an endpoint to generate a new random seed, which is stored in this field.
Then the website should use this field to render the avatar and fall back to the username if this field is empty. The user can then tap on a button to effectively reroll the avatar.
Then add an endpoint to clear the seed so that the user can go back to the username based avatar.

2
retoor retoor ↳ @Lensflare

I think you know the API now better than I do. If avatarseed is a field... I'm sure it's immutable atm. Will look into it 😉

2
Lensflare Lensflare ↳ @retoor

I think you know the API now better than I do.

The side effects of vibe coding :D

2
Lensflare Lensflare

Btw ostream is the greatest nazi and racist of all the users of devrant. Don't be fooled by him.

3
retoor retoor

He has a wife from a bomb country 😄

2
Lensflare Lensflare ↳ @retoor

Specifically to make everyone think that he's not a nazi.
Yes, that's how fucked up he is.

3
retoor retoor ↳ @Lensflare

Whatever racist you are, nobody is as racist as the person that decided that emoji needed skin colors 😤

1
Lensflare Lensflare ↳ @retoor

true

2
retoor retoor ↳ @Lensflare

I also start to code within a hour or so. It's time to do something. When a project is as big as this one now, you start to see how destructive an LLM is. It breaks easily without shame, existing features 😔

1
retoor retoor ↳ @Lensflare

I also start to code within an hour or so. It's time to do something. When a project is as big as this one, now you start to see how destructive an LLM is. 😅 It breaks easily, without shame, existing features.

1
retoor retoor ↳ @Lensflare

This is for multiple reasons a problem. Especially that it costed me money twice - not much, see my profile. There is literally one workaround in this project, and it bytes me 😤

1
retoor retoor ↳ @retoor

Wow, look, it replaced a with an. It fucked up English! 😲

2
Lensflare Lensflare ↳ @retoor

an hour is actually correct English :D
It depends on the pronunciation of the word, not on the spelling of it :)

The h in hour is silent, so it's considered beginning with a vovel :)

0
retoor retoor ↳ @Lensflare

That's why I prefer retro-language. 😄

2
retoor retoor

@Lensflare you forgot to upvote my comments so I did it myself. It's a feature. 😏

1
retoor retoor

@Lensflare starting to program, i will start on the sequence of plus and minus 😊

1
Lensflare Lensflare

much appretiated