diff --git a/docs/CMake API.md b/docs/CMake API.md index cbdbd8559b..059c73ab7d 100644 --- a/docs/CMake API.md +++ b/docs/CMake API.md @@ -331,12 +331,14 @@ attributes directly to these creation functions, rather than adding them later. `LAUNCH_STORYBOARD_FILE` - A custom launch storyboard file to use on iOS. If not supplied, a default storyboard will be - used. + used. If this is specified, then this will take precedence over a LaunchImage inside a custom + xcassets directory. `CUSTOM_XCASSETS_FOLDER` - A path to an xcassets directory, containing icons and/or launch images for this target. If this - is specified, the ICON_BIG and ICON_SMALL arguments will not have an effect on iOS, and a launch - storyboard will not be used. + is specified, the ICON_BIG and ICON_SMALL arguments will not have an effect on iOS. LaunchImages + have been deprecated from iOS 13 onward, but if your xcassets folder contains a LaunchImage and + a custom storyboard hasn't been specified, then it will be used. `TARGETED_DEVICE_FAMILY` - Specifies the device families on which the product must be capable of running. Allowed values diff --git a/extras/Build/CMake/JUCEUtils.cmake b/extras/Build/CMake/JUCEUtils.cmake index c82e63fadb..7f7c13b8db 100644 --- a/extras/Build/CMake/JUCEUtils.cmake +++ b/extras/Build/CMake/JUCEUtils.cmake @@ -1344,10 +1344,11 @@ function(_juce_set_fallback_properties target) _juce_set_property_if_not_set(${target} BUILD_VERSION "${final_version}") get_target_property(custom_xcassets ${target} JUCE_CUSTOM_XCASSETS_FOLDER) + get_target_property(custom_storyboard ${target} JUCE_LAUNCH_STORYBOARD_FILE) set(needs_storyboard TRUE) - if(custom_xcassets) + if((NOT custom_storyboard) AND custom_xcassets AND (EXISTS "${custom_xcassets}/LaunchImage.launchimage")) set(needs_storyboard FALSE) endif()