0
0
iOS Swiftmobile~10 mins

App icon and launch screen in iOS Swift - Interactive Code Practice

Choose your learning style9 modes available
Practice - 5 Tasks
Answer the questions below
1fill in blank
easy

Complete the code to set the app icon name in the Info.plist file.

iOS Swift
"CFBundleIcons": {"CFBundlePrimaryIcon": {"CFBundleIconName": "[1]"}}
Drag options to blanks, or click blank then click option'
ALaunchImage
BAppIcon
CMainIcon
DIconSet
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'LaunchImage' instead of 'AppIcon' causes the app icon not to appear.
Misspelling the icon name in Info.plist.
2fill in blank
medium

Complete the code to set the launch screen storyboard file name in Info.plist.

iOS Swift
"UILaunchStoryboardName": "[1]"
Drag options to blanks, or click blank then click option'
ALaunchView
BMain
CLaunchScreen
DSplashScreen
Attempts:
3 left
💡 Hint
Common Mistakes
Using 'Main' instead of 'LaunchScreen' causes the launch screen not to show.
Misspelling the storyboard name in Info.plist.
3fill in blank
hard

Fix the error in the launch screen storyboard reference in Info.plist.

iOS Swift
"UILaunchStoryboardName": "[1]"
Drag options to blanks, or click blank then click option'
ALaunchScreen
Blaunchscreen
ClaunchScreen
Dlaunch_screen
Attempts:
3 left
💡 Hint
Common Mistakes
Using lowercase or snake_case causes the launch screen not to load.
Not matching the storyboard file name exactly.
4fill in blank
hard

Fill both blanks to define the app icon sizes and scales in the asset catalog JSON.

iOS Swift
{ "images": [ { "size": "[1]", "scale": "[2]" } ] }
Drag options to blanks, or click blank then click option'
A20x20
B2x
C3x
D40x40
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing size and scale values incorrectly.
Using unsupported sizes or scales.
5fill in blank
hard

Fill all three blanks to create a launch screen label with accessibility in SwiftUI.

iOS Swift
Text("Welcome")
  .font(.largeTitle)
  .accessibilityLabel("[1]")
  .accessibilityHint("[2]")
  .accessibilityAddTraits([3])
Drag options to blanks, or click blank then click option'
AWelcome screen title
BShows welcome message on launch
C.isHeader
D.isButton
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong accessibility traits like .isButton for a label.
Not providing accessibility hints.