Composer
Composer

Reputation: 255

Does creating a Storyboard implies creating a xib file?

I've created a new single view app in Xcode. LaunchScreen.xib was created in the process as well as the main storyboard.

When I add controls to the storyboard it doesn't create a new xib file for each view? I'm confused.

Can someone please clarify that?

Thank you.

Upvotes: 0

Views: 24

Answers (1)

Swift Dev Journal
Swift Dev Journal

Reputation: 20088

Xcode creates xib files for each scene in your storyboard when you build the project and copies those xib files into your app bundle.

Xcode does not create xib files and add them to your project when you add views to your storyboard. Adding the xib files to the project would defeat the purpose of using storyboards, which is to have all your views in one place. Having one storyboard instead of multiple xib files in your project is a benefit, not a problem.

Upvotes: 1

Related Questions