Application crash on this function.
private func hide() {
guard let keyWindow = UIApplication.shared.keyWindow else { return }
for item in keyWindow.subviews
where item.restorationIdentifier == restorationIdentifier {
item.removeFromSuperview()
}
showTimer?.invalidate()
showTimer = nil
}