pub enum ContainerBackgroundPlacement {
Window,
Presentation,
}Expand description
Where a container background sits.
Where a .containerBackground is drawn.
Navigation and NavigationSplitView are unavailable on macOS —
SwiftUI ships trap stubs for them there, so reaching one aborts with
“Unavailable code reached” rather than failing to resolve. Window and
Presentation work on every platform. Measured, not assumed: each case
was called on macOS and the two named here are the ones that trap.
Variants§
Trait Implementations§
Source§impl Clone for ContainerBackgroundPlacement
impl Clone for ContainerBackgroundPlacement
impl Copy for ContainerBackgroundPlacement
Source§impl Debug for ContainerBackgroundPlacement
impl Debug for ContainerBackgroundPlacement
impl Eq for ContainerBackgroundPlacement
Source§impl From<Presentation> for ContainerBackgroundPlacement
impl From<Presentation> for ContainerBackgroundPlacement
Source§fn from(_: Presentation) -> Self
fn from(_: Presentation) -> Self
Converts to this type from the input type.
Source§impl From<Window> for ContainerBackgroundPlacement
impl From<Window> for ContainerBackgroundPlacement
impl StructuralPartialEq for ContainerBackgroundPlacement
Auto Trait Implementations§
impl Freeze for ContainerBackgroundPlacement
impl RefUnwindSafe for ContainerBackgroundPlacement
impl Send for ContainerBackgroundPlacement
impl Sync for ContainerBackgroundPlacement
impl Unpin for ContainerBackgroundPlacement
impl UnsafeUnpin for ContainerBackgroundPlacement
impl UnwindSafe for ContainerBackgroundPlacement
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
Mutably borrows from an owned value. Read more