yangyxd / FMXUI

FMX跨平台基础UI库
MIT License
261 stars 96 forks source link

Crash app IOS in TTextView -> SVGimage.Parse() #46

Closed marlonnardi closed 2 years ago

marlonnardi commented 2 years ago

Platforms

TViewBrushBase(TVSearch.Drawable.ItemDefault).SVGImage.Parse(
      '<svg style="width:24px;height:24px" viewBox="0 0 24 24">'+
      '<path fill="currentColor" d="M15,19.88C15.04,20.18 14.94,20.5 14.71,20.71C14.32,21.1 13.69,21.1 13.3,20.71L9.29,16.7C9.06,16.47 '+
      '8.96,16.16 9,15.87V10.75L4.21,4.62C3.87,4.19 3.95,3.56 4.38,3.22C4.57,3.08 4.78,3 5,3V3H19V3C19.22,3 19.43,3.08 '+
      '19.62,3.22C20.05,3.56 20.13,4.19 19.79,4.62L15,10.75V19.88M7.04,5L11,10.06V15.58L13,17.58V10.05L16.96,5H7.04Z"/></svg>');

image

Delphi 11 iPhone Xr IOS 15.3.1

kazuser commented 2 years ago

Try to replace this: image

by this: <svg width="24" height="24" viewBox="0 0 24 24" xmlns="http://www.w3.org/2000/svg">

kazuser commented 2 years ago

And this: image

by this: fill="#333333" (just test)

marlonnardi commented 2 years ago

Thanks @kazuser, I will validate this

marlonnardi commented 2 years ago

Solved