简体   繁体   中英

SwiftUI - LaunchImage not showing

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 perfectly fine, but I just cannot get any launch image customisation going...

My Info.plist : 信息.plist

My assets: 资产目录

I've tried cleaning, deleting DerivedData, reinstalling app on device + sim but to no avail...

What am I doing wrong?

I ran into a similar issue before and got it fixed by restarting my phone.

See also: iOS launch screen does not update

When using launch storyboards I found that if the images that I used where too large it would launch with a black screen.

I reduced the size of the images I was using (one was reduced to 900px by 700px) but I don't know the magical size that sorts it, I then rebooted my iPhone and it started to work fine.

I don't know if the size issue would affect normal launch images but it may be worth giving it a try with a smaller image.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM