I don't know why you want this indicator to be hide. But as per Apple recommended guidelines, it's mentioned to not cover this space/area with other views.
Don't mask or call special attention to key display features. Don't
attempt to hide the device's rounded corners, sensor housing, or
indicator for accessing the Home screen by placing black bars at the
top and bottom of the screen. Don't use visual adornments like
brackets, bezels, shapes, or instructional text to call special
attention to these areas either.
Link - Interface guidelines for iPhone-X
But, if your requirement is to play Video in a Landscape mode.
You can auto-hide
a indicator while playing. It will reappear automatically when user will touch the screen while video play.
For auto-hide
, You can override prefersHomeIndicatorAutoHidden
in respective ViewController
.
override func prefersHomeIndicatorAutoHidden() -> Bool {
return true
}