![]() You would have also seen a Splash entry under Assets.xcassets, and you can also reveal these files in your file system by right-clicking on Splash. ![]() Supplying the launch images is basically the same as the icons. If you are going this route then it may just be easier to drag and drop into the XCode interface so you don't need to worry about messing with the Contents.json file. If you don't have a Contents.json file you would either need to replace each icon making sure to keep the same name and size, or update the existing Contents.json to reflect the new file. If you used a tool that generates the Contents.json file for you as well as the icons, then you can just replace everything in this folder with your new icon set. If you open AppIcon.appiconset you will see all of the icons: You can right-click on AppIcon and choose Show in Finder to reveal where these icons live on the file system. You can either do this directly through the XCode interface by dragging your icons into the appropriate slot, or you can overwrite them directly through the file system. As you can see from the image below, I have replaced all of the icon assets with my own icon: Navigate to App > App > Assets.xcassets and you will be able to see the splash and icon assets for your project. Open up your Capacitor project in XCode: npx cap open ios First, let's find where the existing icons live. There are a couple of ways we can approach adding iOS icons to a project. At this point, I will assume that you already have a Capacitor project created and have added your desired platforms, e.g: npx cap add ios npx cap add android iOS Icons Now, let's move on to adding the assets to a Capacitor project. For this example, I used MakeAppIcon for the iOS icons, ImageGorilla for the Android splash screens, I generated the iOS splash screens manually (as I was just using a universal size), and I had Android Studio create the Android icons for me automatically. These are just a few of the options available. SplashScreen Pro – this is a paid tool but integrates directly with Photoshop or Sketch. ![]()
0 Comments
Leave a Reply. |
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |