0
0
iOS Swiftmobile~5 mins

Project structure in iOS Swift - Cheat Sheet & Quick Revision

Choose your learning style9 modes available
Recall & Review
beginner
What is the main folder where all your Swift code files are stored in an iOS project?
The main folder is called the Sources or App folder, where you keep your Swift files like views, models, and controllers.
Click to reveal answer
beginner
What is the purpose of the Assets.xcassets folder in an iOS project?
It stores images, icons, colors, and other media resources used in the app, making it easy to manage and access them.
Click to reveal answer
beginner
What file acts as the entry point of an iOS SwiftUI app?
The file with the @main attribute, usually named AppNameApp.swift, which defines the app's main structure and launch behavior.
Click to reveal answer
intermediate
Why do we use the Info.plist file in an iOS project?
It contains important configuration settings for the app, like app name, version, permissions, and supported device orientations.
Click to reveal answer
intermediate
What is the role of the PreviewProvider in SwiftUI files?
It provides a live preview of your UI design inside Xcode, helping you see changes instantly without running the app on a device.
Click to reveal answer
Which folder typically contains your app's user interface code in an iOS SwiftUI project?
ASources or App folder
BAssets.xcassets
CInfo.plist
DDerivedData
What type of files do you store in the Assets.xcassets folder?
AImage and color resources
BSwift code files
CApp configuration files
DTest scripts
What does the Info.plist file NOT contain?
ASupported device orientations
BApp permissions
CApp version number
DSwiftUI view code
Which file marks the starting point of a SwiftUI app?
AContentView.swift
BAppNameApp.swift with @main
CAssets.xcassets
DLaunchScreen.storyboard
What is the purpose of the PreviewProvider in SwiftUI?
ATo run unit tests
BTo manage app assets
CTo provide live UI previews in Xcode
DTo store app settings
Describe the main folders and files you find in a typical iOS SwiftUI project and their roles.
Think about where code, images, and settings are stored.
You got /5 concepts.
    Explain how the Info.plist file affects your iOS app's behavior and appearance.
    Consider what settings the system reads from this file.
    You got /5 concepts.