This should be an easy question for most of you. Presenting view controllers like in the attached photo now have a bar at the top of them (see red arrow) to indicate that the user can swipe down to dismiss the controller. Please help with any of the following questions:
- What is the proper term for this icon?
- Is it part of swift's ui tools / library or is it just a UIImage?
- Can someone provide a simple snippet on how to implement - perhaps it is something similar to the code below
let sampleController = SampleController()
sampleController.POSSIBLE_OPTION_TO_SHOW_BAR_ICON = true
present(sampleController, animated: true, completion: nil)
Please see the red arrow for the icon that I am referring to



The feature you are asking is not available in
UIKit.You have to implement custom view-controller transition animation with subclassing
UIPresentationControllerfor rendering that pull up/down handle.UIPresentationController (developer.apple.com)
This can be achieved by any
UIViewor you can use any image if you want by adding subview to UIPresentationController'scontentViewabove thepresentedView.To provide the swipe gesture to dismiss/present, you must implement
UIPercentDrivenInteractionController.You can refer to this tutorial below for detailed understanding.
UIPresentationController Tutorial By raywenderlich.com
You should look for
presentationDirection = .bottomin your case.For gesture driven dismissal, you should check below tutorial
Custom-UIViewcontroller-Transitions-getting-started
I hope this might help you.