asset-catalog Questions
2
I'm writing an app in Storyboard/Swift (XCode 14.2). When I run the app on my iPhone (14 pro 16.3.1) or on an iPhone simulator (16.2) no error is given. But when I test my app in an iPad simulator ...
Amoebocyte asked 3/3, 2023 at 13:48
4
Solved
We have a local html to show in UIWebView. And there, we want to show images that are defined in Asset Catalog.
I know that we can do similar thing if we had the image flat in the main bundle. The...
Advocate asked 14/11, 2014 at 0:4
6
Solved
In SwiftUI, we can get a color from a color set in an asset catalog using:
extension Color {
static let coral = Color("coral")
}
This requires stringly-typed names and gets quite tediou...
Medication asked 30/6, 2019 at 10:22
15
Solved
I'm having some trouble getting my launch image to show up in my application.
I have created all the static image files in the Images.xcassets file in an asset set called "LaunchImage".
I noticed...
Hegira asked 31/12, 2014 at 16:13
12
I usually use custom UIColors on iOS using extensions with Swift, but now with iOS 11/ Xcode 9 we can create Colors Sets. How can we use them?
Update - Tip
As @Cœur says we can drag&drop de c...
Rambutan asked 6/6, 2017 at 18:50
0
About
Our Asset catalog was moved from the App target to swift package resource. Afterward the App's existing storyboard/xibs can no longer render those assets unless the asset catalog is copied vi...
Mosenthal asked 3/2, 2022 at 6:44
1
Strangely, this only happens when running on CI (GitHub Actions).
here is my asset catalog:
Here is my extension to UIColor to access these colors:
// MARK: - UIKit
public extension UIColor {
//...
Amity asked 11/12, 2020 at 4:25
2
I cannot get a Launch Image to be displayed on my app, whatever I try.
For context, this is a completely new, 100% SwiftUI project and is in its very early infancy.
Everything builds & runs per...
Sleep asked 13/1, 2021 at 15:44
1
Solved
In the app I'm working on, we use named colors to manage our color scheme, which we use in code like so:
extension UIColor {
static let primaryColor = UIColor(named: "primaryColor")!
}
This wor...
Ken asked 14/6, 2018 at 7:31
1
Solved
My unit tests target needs to load an image resource for use in some of the tests, but I am having trouble loading it.
I have created an asset catalog within the test target.
I have added a new i...
Supplicant asked 22/3, 2018 at 5:50
5
My Photo Sharing extension plans to use the same design assets (for navigation and for adding 'stamps / stickers' to the photo).
As explained in App Sandbox Design Guide, groups of sandboxed ap...
Manard asked 6/8, 2014 at 0:40
1
Solved
As discussed here & here, the only apparent way to host re-usable images in a Framework's .xcassets file, then use those images in the storyboard / XIB of an app, is to manually create a refere...
Puryear asked 26/4, 2019 at 1:0
14
I am using Xcode 5's Asset Catalog, and I would like to use my LaunchImage as the background image of my home view (a pretty common practice to make the transition from 'loading' to 'loaded' look s...
Terr asked 1/10, 2013 at 3:39
13
Solved
I'm working with a React Native app and I'm trying to set a customize launch screen but I'm not able to.
React Native creates a LaunchScreen.xib by default, so I've created a LaunchImage inside Ima...
Cardwell asked 1/12, 2015 at 18:15
0
I am developing an app that has multiple skins that have different branding colours. Each of these brands have their own target which, in turn, has it own asset catalogue. In these catalogues, I st...
Decisive asked 22/2, 2019 at 5:53
2
Solved
In an asset catalog you can create folders.
Inside the folders all the image names have to be unique.
If you have an image called myImage and you try to name another image myImage then it will au...
Maryrosemarys asked 23/7, 2014 at 8:43
2
Solved
Is there any way to use asset catalog groups to effectively namespace multiple images with a shared name?
For example, if I have multiple images named Foo that are in different groups, is there a ...
Swound asked 21/1, 2015 at 20:55
2
Solved
I've spent hours in trying to figure this one out.
Goal
Display P3 PDF Asset in UIImageView (the PDF is 100% in P3 Color Space).
Issue
I'm creating a P3 PDF asset and adding into the Xcode. Wit...
Yiyid asked 1/7, 2018 at 10:24
4
Solved
I thought the new Preserves Vector Data checkmark in the Xcode 9 asset catalog would finally give us resizing of vector PDF images, but apparently not. Here's my test image seen at two zooms in Pre...
Paquito asked 10/8, 2017 at 20:26
1
I have a project with two targets: target A and target B. This targets generate app which are "equal" but whit different skins (different colors and images)
For this, the project has two Asset Cat...
Henryk asked 12/4, 2016 at 9:5
6
I am creating instruction screen for my app where I have to place a full screen sized image. For that purpose I have to consider all screen sizes and thus I have created a Launch image set in Asset...
Haleigh asked 25/1, 2017 at 7:16
0
My app uses PDF vector assets. Found asset get pixelated scaling in my UIImageView when building my app in Xcode 10 (targetting iOS 11) but when I build same exact app in Xcode 9.4 I do not see thi...
Microcyte asked 10/6, 2018 at 8:9
3
Solved
I have an app that started life for iOS 5 and has been updated ever since. For iOS 7 I have switched over to using an Asset Catalog for all the resources, which is nice and appears to work well. Ho...
Sig asked 1/10, 2013 at 11:20
1
Apple's recommended way for organizing assets in a SpriteKit project has changed greatly over the course of the engine's history. There have also been bugs in the old methodology which stymied the ...
Dumanian asked 16/4, 2018 at 21:11
1
For my iPad app that I'm creating, I have an Asset Catalog in my project containing several color sets. I know that I can drag and drop these into the code itself and have done so for the default c...
Gregorio asked 3/11, 2017 at 15:25
1 Next >
© 2022 - 2024 — McMap. All rights reserved.