GlassSheetDetent enum Modals
The heights a sheet from showGlassSheet rests at — UIKit's
UISheetPresentationController.Detent, two of them.
Values
- medium → const GlassSheetDetent
-
The sheet at its content's height, never taller than the window less its margins, floating kGlassSheetInset in from the window's sides and bottom. What every sheet was before there were detents.
Apple's medium detent is half the window whatever the content; this one is the content's height, so a content half the window tall is Apple's.
- large → const GlassSheetDetent
-
The whole height below the top safe area less kGlassSheetInset, and edge to edge: the inset at the sides and the bottom goes to nothing, and the glass moves to
largeFinish— by default the same finish laid on opaquely, which is Apple's "transitions to a more opaque appearance" taken all the way, and which stops the sheet reading its backdrop at all.The top gap and keeping the corner radius at the bottom are layout taste: only the medium detent was read off iOS.
Properties
- hashCode → int
-
The hash code for this object.
no setterinherited
- index → int
-
A numeric identifier for the enumerated value.
no setterinherited
- name → String
-
Available on Enum, provided by the EnumName extension
The name of the enum value.no setter - runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
Methods
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited
Constants
-
values
→ const List<
GlassSheetDetent> - A constant List of the values in this enum, in order of their declaration.