Practice - 5 Tasks
Answer the questions below
1fill in blank
easyComplete 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'
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.
✗ Incorrect
The app icon name in Info.plist should be set to "AppIcon" to match the asset catalog name.
2fill in blank
mediumComplete 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'
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.
✗ Incorrect
The launch screen storyboard file is usually named "LaunchScreen" by default.
3fill in blank
hardFix 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'
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.
✗ Incorrect
The launch screen storyboard name is case-sensitive and should be exactly "LaunchScreen".
4fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Mixing size and scale values incorrectly.
Using unsupported sizes or scales.
✗ Incorrect
App icons use size "20x20" and scale "2x" for certain device icon sizes.
5fill in blank
hardFill 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'
Attempts:
3 left
💡 Hint
Common Mistakes
Using wrong accessibility traits like .isButton for a label.
Not providing accessibility hints.
✗ Incorrect
Accessibility label describes the text, hint explains its purpose, and .isHeader marks it as a header.