I read this tutorial for importing vector images into xcode: How to Use Vectors in Xcode 7
But it seams it is different in xcode 8.
I created an image set in XCAsset file, however, in xcode 8, there is not "Scale Factors" attribute in its Attribute Inspector.
Where is it? How can I import vector images into image assets in xcode 8?
If you enable “Preserve Vector Data” this feature comes to your apps with no additional work. By enabling this feature, iOS 11 can also automatically scale images regardless of whether you're increasing a UIImageView 's bounds, or using Size Classes to change an UIImageView size.
Choose File > New > File. Choose Resource > Asset Catalog, and click Next. Give the asset catalog a name, choose a location, and click Create.
In Xcode 8 "Scale Factors" was renamed to "Scales".
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With