I have the code below where I am hiding the status bar but I want to be able to show the status bar when the user decides to record the screen. How would I be able to do that?
Edit : I added the isCaptured property in a if statement but
when the screen recording is happening the status bar comes back
white and doesnt show the red bar for some reason. Anyone know why?
override var prefersStatusBarHidden: Bool {
if UIScreen.main.isCaptured == true {
print("show status bar")
return false
} else {
print("hide status bar")
return true
}