detents
The array of heights where a sheet can rest.
Declaration
var detents: [UISheetPresentationController.Detent] { get set }Discussion
The default value is an array that contains the value large(). This array must contain at least one element. When you set this value, specify detents in order from smallest to largest height.