iOS 11 and Solar2D updates
iOS 11 and Solar2D updates
Kwik outptuts icons and launch images for iOS. In Kwik settings > Publish, you can export images for icons and launch images.
June 12 2019, updated iPhone X background size as 360 x 694 (@4x=1440 × 2772). If you stick with iPad, continue to use 360 × 570 (@4x=1440× 2280)
Icon & Safe areas
- iOS 11 update: icons and safe area APIs
-
Icons
- Icon-1024.png is new icon we need to add
- Images.xcassets is made with xCode. It is the Icon assets you need to create
settings = { iphone = { xcassets = "Images.xcassets", ...
-
iPhone X
- total area 360x694. Need to enlarge the background image
-
Launch image/CoronaSplash image
Search for splash in the free plugins directory at https://plugins.solar2d.com/ 30 to control splash screen when using Solar2D.
You need to activate the plugin if you want to display your own splash screen instead of the default image.
iOS loads Apple’s launch images of LaunchScreen.storyboardc made by Xcode. You can create it with Xcode.
On Android:
Start App
Show the default splash screen
App's first screen shows.
On iOS:
Start App
Show Apple's launch images
Show the default splash screen
App's first screen shows.
-
- build.settings > splashScreen
- you may turn it off for iOS because iOS loads another launch screen with LaunchScreen.stroybordc
- tunr it on for Android with your own splash image
settings = { splashScreen = { ios = { enable = true, image = "mySplashScreen_iOS.png" }, android = { enable = true, image = "mySplashScreen_Android.png" } }, }
- Default.png is outdated. No more single codebase for multiple platforms(iOS&Android)
- build.settings > splashScreen
-
-
You have to use Apple launcher images because otherwise black screen while the app is loading the splash screen
-
XCode to create LaunchScreen.storyboardc
- build.settings > UILaunchStoryboardName
-
Alternatively you can do with Static Method by using UILaunchImages in build.settings
-
Summary
-
create Icon-1024.png Curren Kwik does not generatethe icons and the launch images are exported automatically when export icons is true in Settings > Publish. -
In build4/Images.xcassets, you find the icons.
- Images.xcassets doc
- build.settings > xcassets = “Images.xcassets”
-
XCode to create LaunchScreen.storyboardc and place it build4 folders with Launch.png, Launch@2x.png and Launch@3x.png
- build.settings > UILaunchStoryboardName
-
purchase CoronaSplashControl plugin if you want to use own splash image
- build.settings > splashScreen
-
enlarge the background image 360x694 for iPhone X. It means
- 360 × 694 @1x
- 720 × 1386 @2x
- 1440 × 2772 @4x
When XCode reports an error about Swift3, change the swift language version to Swift4 in LaunchImage.xcodeproj
