#[repr(transparent)]pub struct UINavigationItemSearchBarPlacement(pub NSInteger);UINavigationItem only.Expand description
Tuple Fields§
§0: NSIntegerImplementations§
Sourcepub const Automatic: Self
pub const Automatic: Self
The navigation bar will choose a placement for the search bar that is appropriate for the current layout
Sourcepub const Integrated: Self
pub const Integrated: Self
The navigation bar will place the search bar inline with other content, on the trailing edge. On iPhone, when the navigation bar belongs to a UINavigationController, the search bar may be integrated into the toolbar.
Sourcepub const Stacked: Self
pub const Stacked: Self
The navigation bar will place the search bar vertically stacked with other content.
Sourcepub const IntegratedCentered: Self
pub const IntegratedCentered: Self
Placement is the same as Integrated, except that in regular width on iPad, the search bar is centered in the navigation bar. Only respected when used in a view controller that is a descendant of a tab bar controller or when using a navigation item style that requires a leading aligned title
Sourcepub const IntegratedButton: Self
pub const IntegratedButton: Self
Placement is the same as Integrated, except that the inactive search bar is always shown as a button even when space permits a search field.
Trait Implementations§
Source§fn clone(&self) -> UINavigationItemSearchBarPlacement
fn clone(&self) -> UINavigationItemSearchBarPlacement
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§fn cmp(&self, other: &UINavigationItemSearchBarPlacement) -> Ordering
fn cmp(&self, other: &UINavigationItemSearchBarPlacement) -> Ordering
1.21.0 · Source§fn max(self, other: Self) -> Selfwhere
Self: Sized,
fn max(self, other: Self) -> Selfwhere
Self: Sized,
Source§fn eq(&self, other: &UINavigationItemSearchBarPlacement) -> bool
fn eq(&self, other: &UINavigationItemSearchBarPlacement) -> bool
self and other values to be equal, and is used by ==.