Skip to content

iOS LaunchScreen light and dark mode #26133

Closed Answered by AlleSchonWeg
AlleSchonWeg asked this question in Q&A
Discussion options

You must be logged in to vote

After two days of try and error it finally works. The trick was to set the link property in the csproj file. Here is what i have done.

	<ItemGroup Condition="$([MSBuild]::GetTargetPlatformIdentifier('$(TargetFramework)')) == 'ios'">
		<ImageAsset Include="Platforms\iOS\Splash\LaunchIcon.imageset\Contents.json" Link="Assets.xcassets\LaunchIcon.imageset\Contents.json" />
		<ImageAsset Include="Platforms\iOS\Splash\LaunchIcon.imageset\Logo_dark.pdf" Link="Assets.xcassets\LaunchIcon.imageset\Logo_dark.pdf" />
		<ImageAsset Include="Platforms\iOS\Splash\LaunchIcon.imageset\Logo_light.pdf" Link="Assets.xcassets\LaunchIcon.imageset\Logo_light.pdf" />
		<InterfaceDefinition Include="Platforms\iOS…

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@marevalointermedia
Comment options

Answer selected by AlleSchonWeg
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants