AI-generated Key Takeaways
-
DetentOptionsis an enum that defines how the search suggestions view is presented. -
It offers four options:
mediumOnly,largeOnly,mediumByDefault, andlargeByDefault, controlling the view's initial and adjustable size. -
mediumOnlyandlargeOnlyfix the view to half and full screen respectively, whilemediumByDefaultandlargeByDefaultallow resizing between half and full screen with a default starting size. -
These options are represented by integer values (0-3) accessible in both Swift and Objective-C.
DetentOptions
enum DetentOptions : NSInteger {}The detent options for the search suggestions view. Medium = half screen, Large = full screen.
-
half of the screen only, cannot grow or shrink.
Declaration
Swift
case mediumOnly = 0Objective-C
DetentOptionsMediumOnly = 0 -
full screen only, cannot grow or shrink.
Declaration
Swift
case largeOnly = 1Objective-C
DetentOptionsLargeOnly = 1 -
half screen by default, but can grow to full screen.
Declaration
Swift
case mediumByDefault = 2Objective-C
DetentOptionsMediumByDefault = 2 -
full screen by default, but can shrink to half screen.
Declaration
Swift
case largeByDefault = 3Objective-C
DetentOptionsLargeByDefault = 3