Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS does not show proper scale svg image. #313

Open
1 of 10 tasks
yeahg-dev opened this issue Sep 9, 2024 · 2 comments
Open
1 of 10 tasks

iOS does not show proper scale svg image. #313

yeahg-dev opened this issue Sep 9, 2024 · 2 comments
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.

Comments

@yeahg-dev
Copy link

Current behavior

I'm struggling issue with svg file in iOS with Uno Single Project.
As far as I know, just referencing svg file path in Image choose the appropriate scaled png file that device needs(ex. @3x). but my app can not display the right scaled image, so Image quality is poor.

 <Image Source="Assets/Icons/icon_plus.png" Width="50" Height="50" />

I followed the description in Uno Platform document
https://platform.uno/docs/articles/external/uno.resizetizer/doc/using-uno-resizetizer.html?tabs=singleproject%2CAndroid#using-svg-images-vs-png-images-with-svg-underneath
I added UnoImage build action in csroj.

// .csproj
<Project Sdk="Uno.Sdk">
 ...
  <ItemGroup>
    <UnoImage Include="Assets\Icons\*.svg" />
  </ItemGroup>
...
</Project>

But It didn't help.

Do I miss something when using svg file?

Expected behavior

Svg Image should rendered without lower quality.

How to reproduce it (as minimally and precisely as possible)

https://github.com/yeahg-dev/UnoSvgTest

Environment

Nuget Package:
Uno Sdk : "5.2.175"

Package Version(s):

Affected platform(s):

  • iOS
  • Android
  • WebAssembly
  • WebAssembly renders for Xamarin.Forms
  • Windows
  • Build tasks

Visual Studio:

  • 2017 (version: )
  • 2019 (version: )
  • for Mac (version: )

Relevant plugins:

  • Resharper (version: )

Anything else we need to know?

@yeahg-dev yeahg-dev added kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification. labels Sep 9, 2024
@yeahg-dev
Copy link
Author

Anyone else having the same problem?

@MartinZikmund
Copy link
Member

@yeahg-dev Agreed, I have seen such behavior before myself. We will make sure to look into this

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
kind/bug Something isn't working triage/untriaged Indicates an issue requires triaging or verification.
Projects
None yet
Development

No branches or pull requests

2 participants