Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to import vector images into image assets in xcode 8

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?

like image 332
Mehdi Mirzaei Avatar asked Sep 23 '16 14:09

Mehdi Mirzaei


People also ask

What is Xcode preserve vector?

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.

How do I add an asset catalog in Xcode?

Choose File > New > File. Choose Resource > Asset Catalog, and click Next. Give the asset catalog a name, choose a location, and click Create.


1 Answers

In Xcode 8 "Scale Factors" was renamed to "Scales".

XCode 8 Vectors

like image 93
flagman Avatar answered Nov 12 '22 08:11

flagman