selectedDetentIdentifier
The identifier of the most recently selected detent.
Declaration
var selectedDetentIdentifier: UISheetPresentationController.Detent.Identifier? { get set }Discussion
This property represents the most recent detent that the user selects or that you set programmatically. The default value is nil, which means the sheet displays at the smallest detent you specify in detents.