Extension icon looks bad at small sizes

jeremygale
jeremygale
Community Member

I apologize in advance if this is an ignorant question. I haven't used xcassets before and that may be the problem.

I created a button for my native login view controller, as instructed on the GitHub README. The size I want to use for a field is 30x30 pts, (60x60 on a Retina device). For the UIButton in interface builder, I gave it a size of 30x30 and set the image name to "extension-iphone".

When I run it on the device, the logo looks crappy, all downsampled and not a nice circle. Screenshot attached.

I see the actual assets are 60x60 pts, or 120x120 for Retina devices. This is way too big for a normal sized UITextField, IMO. Even in your example video (linked here: https://github.com/AgileBits/onepassword-app-extension), I'd estimate the icon is about 30x30.

Would it be possible to make a smaller version? Or am I doing something wrong?

Thanks!
Jeremy

Comments

This discussion has been closed.