Skip to main content

All Questions

Tagged with
3 votes
3 answers
1k views

PDF vector image in Launch Screen, not scaling properly on device

I am using storyboard for my Launch Screen. I have an UIImageView and a UILabel in my Launch Screen. For the UIImageView's image, I am using a .pdf image that is located in Assets.xcassets. The ...
AW5's user avatar
  • 426
0 votes
2 answers
134 views

Why huge icon 512 x 512 still rendering as pixelate on iPhone?

I'm on Swift 4.2 - I have an icon 512 x 512 with resolution 300 ppi. I imported into my asset folder, moved it to the 2x section, and select preserve vector data In the phone, I notice it rendering ...
code-8's user avatar
  • 57.5k
1 vote
0 answers
696 views

How to get resized image from PDF vector asset?

I am developing game with SpriteKit for iPhone devices only. In the scene I have buttons, which need to be positioned in the way to fill the height of the screen: There should be no gaps between top ...
Pablo's user avatar
  • 29.1k
0 votes
1 answer
483 views

Change node color in spritekit

I have a vector illustration of a branch with a few leaves on it. I am moving the branch from the bottom of the screen to the top of the screen. But as the branch moves from the initial position (...
Aman Kapoor's user avatar
0 votes
1 answer
171 views

PDF vector graphic smaller than the png at same size

I converted some SVG images into PDF and png files for my iOS app. When adding them to the UIImageView, the pdf images look smaller than the png equivalent. The scale type was set to center, so no ...
jarly's user avatar
  • 231
0 votes
0 answers
160 views

How to convert vector string in to image in objective c?

I am getting string like below from heartland payment gateway, 0,65535^16,58^16,55^16,52^16,48^17,45^19,42^20,39^22,35^24,32^28,31^31,29^34,28^37,28^40,29^44,31^47,32^50,34^53,35^56,38^60,40^63,43^66,...
jaydeep darji's user avatar
2 votes
1 answer
2k views

iOS: using SVG (PocketSVG) for hundreds of image assets

One of our team member is urging to use SVGs using github.com/pocketsvg/PocketSVG, instead of regular assets @1x @2x @3x. We have over a hundred image sets. I have 2 questions: 1) 100s of SVG data ...
AamirR's user avatar
  • 12.1k
2 votes
0 answers
109 views

Why is it hard for iOS to natively render SVGs?

I have read numerous posts online saying native rendering of SVGs on iOS is expensive. My question is why? SVGs are just images defined as a set of vector graphics which seem to be your typical “...
AyBayBay's user avatar
  • 1,726
19 votes
2 answers
50k views

Loading SVG based image assets for iOS app

I purchased an icon from thenounproject as an SVG image. I then use a macOS program called Gapplin to export this SVG into a PNG image. It comes out as a 100x100 pixel image. I then open this PNG ...
JK140's user avatar
  • 785
4 votes
2 answers
4k views

Is it really necessary to provide all the different app icon sizes for an iOS app?

I'm tempted to provide the highest resolution icon and let iOS scale it down as necessary. Is this a bad idea, and (if so) why?
redcurry's user avatar
  • 2,467
10 votes
1 answer
7k views

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 ...
Mehdi Mirzaei's user avatar
5 votes
1 answer
6k views

Using PDFs for icon images in Xcode 7.2

I'm attempting to use PDF files as icons in an app I'm working on. The issue I'm encountering is I'm getting inconsistent tint colors. If I set a button image from interface builder, the icon image ...
Adrian's user avatar
  • 16.5k
1 vote
1 answer
2k views

How to resize UIImage vector graphic

This is a rather strange question. You're probably thinking "You must resize the UIImageView, not the UIImage", but I can't get it working, and I'm not sure it's correct in this case. I have a .pdf ...
Sti's user avatar
  • 8,404
36 votes
4 answers
8k views

Xcode: Vector images from PDF bad quality

for my iOS Swift project I use vectorized pdf files from which Xcode renders the @1x, @2x, @3x images. When I compare the quality of the images generated from PDF with normal PNG images of the same ...
Philipp Otto's user avatar
  • 4,109
0 votes
0 answers
143 views

Developing vector drawing app on iOS

I'm interesting into your opinion about what's the best (or rule of thumb) approach to developing vector drawing apps on iOS. The app doesn't need to be drawing app, it can be any graph editor such as ...
mixtly87's user avatar
  • 1,675

15 30 50 per page