Struct apple_bundle::info_plist::user_interface::LaunchScreen[][src]

pub struct LaunchScreen {
    pub color_name: Option<String>,
    pub image_name: Option<String>,
    pub image_respects_safe_area_insets: Option<bool>,
    pub navigation_bar: Option<Bar>,
    pub tab_bar: Option<Bar>,
    pub toolbar: Option<Bar>,
}
Expand description

Launch Screen

Fields

color_name: Option<String>

The name of a color to use as the background color on the launch screen.

Provide a value for this key that’s the name of a color in your asset catalog. You use the same string for the value that you might use when calling the init(named:) initializer of UIColor.

If you don’t set a color, the system uses a default of systemBackground, which varies according to whether the user has selected the light appearance or Dark Mode for the device.

Availability

  • iOS 14.0+

Framework

  • SwiftUI
image_name: Option<String>

The name of an image to display during app launch.

Provide a value for this key that’s the name of an image in your asset catalog. You use the same string for the value that you might use when calling the init(named:) initializer of UIImage. Because the image comes from your asset catalog, you can use slicing to provide a small image that works on many different platforms.

If you don’t specify an image, the display shows the background color, as given by the UIColorName key. The background color may also show through any transparency in your image.

Availability

  • iOS 14.0+

Framework

  • SwiftUI
image_respects_safe_area_insets: Option<bool>

A Boolean that specifies whether the launch image should respect the safe area insets.

Availability

  • iOS 14.0+

Framework

  • SwiftUI
navigation_bar: Option<Bar>

Navigation bar visibility and configuration during launch.

When you provide a dictionary for this key, the system displays a navigation bar during launch. You can optionally set the dictionary’s UIImageName key to define a custom image for the navigation bar.

Omit this key if you don’t want to display a navigation bar during launch.

Availability

  • iOS 14.0+

Framework

  • SwiftUI
tab_bar: Option<Bar>

Tab bar visibility and configuration during launch.

When you provide a dictionary for this key, the system displays a tab bar during launch. You can optionally set the dictionary’s UIImageName key to define a custom image for the tab bar.

Omit this key if you don’t want to display a tab bar during launch.

Availability

  • iOS 14.0+

Framework

  • SwiftUI
toolbar: Option<Bar>

When you provide a dictionary for this key, the system displays a toolbar during launch. You can optionally set the dictionary’s UIImageName key to define a custom image for the toolbar.

Omit this key if you don’t want to display a toolbar during launch.

Availability

  • iOS 14.0+

Framework

  • SwiftUI

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Deserialize this value from the given Serde deserializer. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Performs the conversion.

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.