Partial Sheet
A control that presents a view controller as a partial sheet
iOS (UIKit) is being deprecated
Thumbprint on iOS is transitioning from UIKit to SwiftUI, and this documentation is no longer being supported. Please refer to the SwiftUI documentation when available.
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)
Properties
isGrabberViewHidden
If false, the grabber at the top of the partial sheet is shown. The default value is true
.
viewController.partialSheetPresentationController?.isGrabberViewHidden = false
isPanToDismissEnabled
If false, the partial sheet cannot be dismissed by panning it down. The default value is true
.
viewController.partialSheetPresentationController?.isPanToDismissEnabled = false
Public API
See Apple documentation on UIPresentationController for the public API.