Components
A control that presents a view controller as a partial sheet.
On iOS the partial sheet presentation is implemented using the built-in UIKit component UIPresentationController
.
viewController.modalPresentationStyle = .customviewController.transitioningDelegate = Presentation.partialSheetviewController.partialSheetPresentationController?.partialSheetDelegate = selfpresent(viewController, animated: true)
If false, the grabber at the top of the partial sheet is shown. The default value is true
.
viewController.partialSheetPresentationController?.isGrabberViewHidden = false
If false, the partial sheet cannot be dismissed by panning it down. The default value is true
.
viewController.partialSheetPresentationController?.isPanToDismissEnabled = false
See Apple documentation on UIPresentationController for the public API.