Doyun Kim
Doyun Kim

Reputation: 13

After xcodegen, screen size is not full screen

When I had just created a project, the screen looks fine and it reflected exactly what I saw looked on the storyboard, and after pod install also look good. But after xcodegen generate, screen looks like the pic, so I assume xcodegen affected the screen view but not sure what has been changed. project.yml only contains dependency packages. Does anyone know what makes screen size?

enter image description here

Upvotes: 0

Views: 531

Answers (2)

Vadim Kurochkin
Vadim Kurochkin

Reputation: 427

Add UILaunchStoryboardName key

enter image description here

Upvotes: 0

Axel B
Axel B

Reputation: 158

It happens when there is no launch screen specified. In your project.yml, add something under UILaunchScreen, like this:

targets:
  MyApp:
    type: application
    platform: iOS
    deploymentTarget: "15.0"
    sources: [MyApp]
    info:
      path: MyApp/Resources/Info.plist
      properties:
        UILaunchScreen:
          UIImageName: LaunchImage

where LaunchImage is the name of an image in your asset catalogue. Alternatively, specify a color with UIColorName. That color also has to be in your asset catalogue.

Upvotes: 1

Related Questions