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 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§
Source§impl Clone for LaunchScreen
impl Clone for LaunchScreen
Source§fn clone(&self) -> LaunchScreen
fn clone(&self) -> LaunchScreen
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for LaunchScreen
impl Debug for LaunchScreen
Source§impl Default for LaunchScreen
impl Default for LaunchScreen
Source§fn default() -> LaunchScreen
fn default() -> LaunchScreen
Source§impl<'de> Deserialize<'de> for LaunchScreen
impl<'de> Deserialize<'de> for LaunchScreen
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for LaunchScreen
impl PartialEq for LaunchScreen
Source§impl Serialize for LaunchScreen
impl Serialize for LaunchScreen
impl Eq for LaunchScreen
impl StructuralPartialEq for LaunchScreen
Auto Trait Implementations§
impl Freeze for LaunchScreen
impl RefUnwindSafe for LaunchScreen
impl Send for LaunchScreen
impl Sync for LaunchScreen
impl Unpin for LaunchScreen
impl UnwindSafe for LaunchScreen
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.