Xcode Asset Catalog not showing - ios

I’m a new developer to Xcode and I’m trying to create my first app. However when I want to add to my asset catalog, I’m not finding the import button or when I drag and drop a image , it’s not going into a folder nor can I find a way to create a folder. I just have this blank empty space.
This is what a normal asset catalog looks like in YT tutorials:
This is what I get:
I tried looking into view, I’ve seen an Apple dev link that didn’t really help. It called for File>New> Asset catalog but it just creates this image icon as seen in my screenshot

you enabled code review, try disabling it

Related

Material icons library is not detected on Xcode

I am trying to use Material Icons library on my swift application on Xcode but I cannot make that the library will be detected by the project.
The steps that I have followed:
From here I have copied the link to use git repository.
On terminal, I have go through the project folder and use the link that I have copied before.
Xcode project does not detect it so I drag it from the folder to the project but I cannot use it.
Am I doing something in the wrong way?
Thanks in advance!
As #EricAya pointed I was following the wrong steps. I saw that there were steps to use Material icons for iOS but as it says in the documentation:
Material icons also work well within iOS apps. In both the material icons library and git repository, these icons are packaged up in Xcode imagesets which will work easily with Xcode Asset Catalogs (xcassets).
I guessed that it could also be installed with git repository but I could not get it. Finally I used the following steps:
Go to the official webpage of Material icons and click on the icon that you would like to use.
You will see on the right corner of the webpage two options to download the icon (SVG or PNG). I have chosen PNG.
Unzip the .zip package.
Open ios folder and drag the .imageset folder to your .xcassets file in your project of Xcode.
You can create both an imageView or button to set it and use the following code to create the image:
UIImage(named:"ic_close")?.imageWithRenderingMode(UIImageRenderingMode.AlwaysTemplate)
To set it to your UIImageView you can use yourImage.image and for your button yourButton.setImage().
Do not forget to change the tint property of your imageView or button. I spent some hours thinking that it was not working and the problem was that the tint property was white (sometimes simpler things make waste your time easily).

Its just impossible to add an action extension icon

I've been literally trying for two weeks to get an icon for an action extension to appear, but absolutely nothing works.
I've seen past questions such as this iOS 8 Action Extension icon sizes and this Why isn't my iOS8 Application Action Extension App Icon showing up? but they are of no use.
I've created an Xcode template project purely to try every combination of things mentioned in the other questions, still without avail.
1) The first thing that's mentioned is that the action extension should have its own asset catalog, ok here it is:
2) Secondly that it should contain an app icon image set, here that is:
3) Thirdly people say they had to add its target membership to the extension and to the app. Here that is too (in all of these things, I've tried variations such the membership being just the extension, just the app, both)
4) Fourthly, people mention they had to add it to the compile sources, here that is, as well as it being copied in the bundle resources:
5) Some say it also needs to be copied in the container app's bundle, here that is, and for good measure its been added as a compile resource of that too:
6) One person says it was necessary to add the container apps assets to the extension bundle, I can't see how that would work as the icons in the container app are colored and not matching the requirements of the extension icons, but what the hell, might as well try everything right, and while we're at it lets add assets everywhere:
7) The asset icon itself is important, colored icons are not displayed, but I tried it anyway. A simple black and white image is described as the white parts appearing as grey but I've tried that anyway. Trying unsupported icons was just desperation and experimentation, of course I'm actually using an icon with a transparent background. When posted here it appears on this webpage as all white of course, but the non-black parts are actually fully transparent and have an alpha of 0:
But despite trying many combinations of all the various steps above, this is what it looks like on the device:
This is using iOS 10.n, latest 10.7 (it hasn't worked with any beta) and Xcode 8.6. If I download an app from the app store that uses action extensions then their icons are appearing, so there's no issue with the 10 beta. The issue is either something building the app with Xcode beta, or some step I've missed out - if that is the case, then what?
Finally found out the solution - in order to get it to work its additionally necessary to set the Asset Catalog compiler options of Build Settings section of the extension to specify the name of the app icon set within the asset catalog:
How to set an action icon really is the most appallingly badly documented aspect of iOS, totally shockingly awful.

Changing old UI on Xcode to new UI

This is a newbie question. But I would like to change my old UI (pngs) on my current project to some new updated ones that are of similar size. Is there anyway to drag and drop the UI directly without affecting the actions so the buttons still work the same on the app. Or do you have to recode everything when you change UI? I'm not really sure the steps I need to do, but I have all the new UI ready to go. Can anybody guide me through these steps?
Another question is, I have a video editor and want to test out a video player in the simulator at run time, but right now I can see my music or video files because I don't have any in the simulator. How do I import these files into a project to test it out (on the computer), I know the camera roll on a phone would work.
If anybody can give me some guidance, I would greatly appreciate it. I know these are newbie questions.
Thanks,
If the new images are the same size of the old images, just rename the new images exactly like the old images and then overwrite the old images at the project's path.
And for the video files, drag the video files directly to the iOS simulator. The video will open in the Safari, click the share button in the tab bar of the safari and hit "Save Video".

App loading Image

sometimes when I start my App it shows me a black screen until its loaded.
Where is the place to add an Image or whatever to show that in instead of that nasty black screen?
Thanks in advance,
Philip
The black screen simply means that there is no launch image set for your app. The newest and in my opinion easiest way to add these is to use an Asset catalog.
If you created your app in a recent version of xCode, an asset catalog named Images.xcassets is automatically created for you.
Navigate to the same by clicking on it and then simply drag and drop your image into the same.
Here's a screenshot:
I would also strongly recommend that you maintain all graphics used in your app via this Asset catalog. The big advantage with using this process is you don't have to worry about the usual naming conventions you would need if you included graphics outside of an asset catalog - for e.g. You no longer have to name retina images as #2x
Something really simple in fact. Go to Xcode, Tap the project on the top, on the drop down menu on the top left select the target, then click General and select images at where it says Launch Images

How do I separate the app icon from the launch image in an iOS app

Thanks for the time to look. I have a weird problem. my Launch image (AKA Splash screen) seems to automatically be tied to my App icon. so I cant change one with out changing the other. In other words, when I add a new app icon, it changes the launch image to match.
I am guessing this has something to do with the .plist file, but I cant figure out where to fix it.
Thanks for the time!
You can specify them differant in plist file. See here
ALSO
Check Apple's link for default name of different files. You just need to rename with default name and add the image files in your project.

Resources