Questions tagged [xcasset]

An image asset catalog is an asset management file type and editor in Xcode 5.

Xcode 5 asset catalogs manage images and icons in multiple resolutions. An asset catalog is a new asset management file type and editor in Xcode 5.

You use asset catalogs to store and manage images for different platforms, devices, and scale factors. The catalog presents the image variants required, and provides you with the ability to define slice and stretch points for images that are resized at runtime.

For more information on Xcode Asset Catalogs, refer here.

235 questions
1
vote
2 answers

IOS/Xcode: Safe to drag and drop images to Images.xcassets without adding first?

Normally to add a file in Xcode, I first move it to the project directory and then click File Add to bring it into the project. The reason I first move it into the project directory is to avoid cases of accidentally moving or deleting a file that…
user6631314
  • 1,751
  • 1
  • 13
  • 44
1
vote
1 answer

Not able to find Images.xcassets folder in Visual Studio

So i want to add Vector images to an iOS app,i'm a newbie in terms of iOS but ive worked on Android Apps,while adding scalable images it seems i have to create a folder named Images.xcassets which i did,but for some reason i'm not able to see the…
Venky
  • 1,929
  • 3
  • 21
  • 36
1
vote
1 answer

Xcode 9.2 Asset Catalog editor pane empty

Whenever I try to add a new resource or edit an existing resource in my Asset Catalog in Xcode 9.2, the editor pane is just totally empty. I have tried App Icon Set, Color Set, Image Set, and I get the same result every time. I have tried quitting…
Nick Alexander
  • 1,543
  • 1
  • 14
  • 26
1
vote
0 answers

iPad icons not being included in build

An iPhone app that I inherited responsibility for a long time ago began showing the default icon on Springboard after the upgrade to iOS 11 (and disappeared from App Store searches from iPad). This is a very old app (last active development was in…
Darren Black
  • 1,030
  • 1
  • 9
  • 28
1
vote
1 answer

image from xcassets iOS11

I have a set of images inside an .xcassets folder. Using iOS 11 and Xcode 9 I access them with func searchCodes() -> NSArray { let file = Bundle.main.url(forResource: "PickerStations", withExtension: "plist") return…
RyanTCB
  • 7,400
  • 5
  • 42
  • 62
1
vote
1 answer

XCode - how to set rendering mode of an image set in xcassets

As pointed out here in @Anthony Mattox (and many other posts), to set the rendering mode of an image set in Assets.xcassets, just simply select that image and pick Template Image option in Render As of Attributes Inspector. How come do I always see…
quanguyen
  • 1,443
  • 3
  • 17
  • 29
1
vote
2 answers

Load image NOT from .xcassets folder?

I have a localized app for iOS. I localized my images and set them to views from code. I removed localized images from .xcassets and now that images are in some folder 'localized_images'. But now some views in storyboard were left empty. How can I…
Alexander
  • 161
  • 2
  • 14
1
vote
1 answer

Sprite Atlas - Importing @3x, @2x, and @1x images into XCAssets

I have a script that I wrote that takes a folder of images, and automatically resizes them to the @3x, @2x, and @1x equivalents. I named the folders @3x, @2x, @1x, and inside each folder every image has a suffix of @3x.png, @2x.png, @1x.png,…
NullHypothesis
  • 4,286
  • 6
  • 37
  • 79
1
vote
0 answers

Assets.xcassets unlinked from project in Swift 3

I am new to Swift. While creating project I accidentally deleted the Assets.xcasset file. I retrieved it from trash and imported it to project. Now my problem is that images are not getting attached to the file. while running app it crashes with…
Khushboo Dhote
  • 198
  • 3
  • 13
1
vote
0 answers

scaleMode .fill not filling the scene view on iPad

I created my game using the Universal images of dimensions 1136x640 (@2x) and 2208x1242 (@3x) for my start background. I changed the scaleMode property to .fill for iPad but it just fills the center with black borders all around. I thought .fill was…
Serenade
  • 55
  • 5
1
vote
1 answer

XCode XCAssets and autocompletion

I was wondering if anyone knew if the XCAsset symbols provided in autocompletion can be used in any way, I imagine something but it didn't worked. Xcode propose all the images, it looks really interesting but if it's just to "show" I would be sad…
Tancrede Chazallet
  • 7,035
  • 6
  • 41
  • 62
1
vote
0 answers

Xcode iOS appicon assets drag and drop - am I doing this wrong?

I am curious if I am doing this wrong or is this really this much work to place the icons for different sizes? I have the app icons for my app with following names: ├── iPad │   ├── Icon-76.png │   ├── Icon-76@2x.png │   ├── Icon-83.5@2x.png │   ├──…
1
vote
1 answer

I have two xcassets in my project. Why cannot load one of the xcassets' picture when run on the device/simulator?

I have tow xcassets in my project: and both was copied to the bundle resources. And I can see the picture on xib: When I run the project, NO picture in the bjzjicons.xcassets was shown on the device/simulator. But if I move the picture in…
shiyj
  • 151
  • 5
1
vote
1 answer

Image asset in storyboard not showing correct image

I have a storyboard for my iOS app. The storyboard is set to be the launch screen file so it acts as splashscreen at start. In the storyboard I have placed an image. The image is not actually a .png, but an image from the Images.xcassets asset…
Andry
  • 16,172
  • 27
  • 138
  • 246
1
vote
0 answers

Generate Custom UIApplicationShortcutIcon without bundling the image.

I currently have UIApplicationShortcutItem working, however, I would like to use my own custom Icon. I know that I can use iconWithTemplateImageName to get my own custom icon. However, I would rather not include 100s of icons with the app. It seems…
Cripto
  • 3,581
  • 7
  • 41
  • 65