Xcode 9 asset catalog Preserves Vector Data not working?

前端 未结 4 1256
一整个雨季
一整个雨季 2020-12-24 07:21

I thought the new Preserves Vector Data checkmark in the Xcode 9 asset catalog would finally give us resizing of vector PDF images, but apparently not. Here\'s my test image

4条回答
  •  孤城傲影
    2020-12-24 07:46

    Edit: Still the same buggy behavior in Xcode 9 GM (9A235)

    As of today (Xcode 9 beta 6 9M214v), the image will only be rendered properly (non-blurry) if the UIImageView has at least 3 spacing-related constraints.

    eg. spacing to left, spacing to right, spacing to top, and another constraint to define the UIImageView height.

    Note also that disabling autolayout completely will make all the UIImageView render incorrectly.

    I filled rdar://34306192 (http://www.openradar.me/radar?id=4968083747766272) for this bug.

提交回复
热议问题