pub enum TabStyle {
Automatic,
SidebarAdaptable,
TabBarOnly,
Grouped,
}Expand description
Which TabViewStyle to apply.
Each is a distinct Swift type with its own conformance, which is why the modifier is generic in Swift and takes a value here.
The cases are the ones a platform can actually use, so a style that does
not exist here is a compile error rather than a trap at run time:
.grouped is macOS-only and absent on iOS. .page is iOS-only and is not
offered at all — its initialiser takes an indexDisplayMode, and nothing
on this machine could check it.
Variants§
Automatic
.automatic — DefaultTabViewStyle.
SidebarAdaptable
.sidebarAdaptable — a sidebar where there is room, tabs where not.
TabBarOnly
.tabBarOnly — the tab bar without the adaptive sidebar.
Grouped
.grouped — macOS only.
Trait Implementations§
impl Copy for TabStyle
impl Eq for TabStyle
Source§impl From<SidebarAdaptable> for TabStyle
impl From<SidebarAdaptable> for TabStyle
Source§fn from(_: SidebarAdaptable) -> Self
fn from(_: SidebarAdaptable) -> Self
Converts to this type from the input type.
Source§impl From<TabBarOnly> for TabStyle
impl From<TabBarOnly> for TabStyle
Source§fn from(_: TabBarOnly) -> Self
fn from(_: TabBarOnly) -> Self
Converts to this type from the input type.
impl StructuralPartialEq for TabStyle
Auto Trait Implementations§
impl Freeze for TabStyle
impl RefUnwindSafe for TabStyle
impl Send for TabStyle
impl Sync for TabStyle
impl Unpin for TabStyle
impl UnsafeUnpin for TabStyle
impl UnwindSafe for TabStyle
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