This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func appearances() { | |
let windows = UIApplication.shared.windows | |
for window in windows { | |
for view in window.subviews { | |
view.removeFromSuperview() | |
window.addSubview(view) | |
} | |
} | |
setupProxies() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
func sendDataToRemoteServer(_ data: [[ : ]], hotelName: String) { success, error in | |
if error != nil { | |
DispatchQueue.main.async { | |
// DO NOT REMOVE THE COMPLETED CHECKLIST STEPS FROM THE DEVICE | |
// Show something to the user to let them know checklist is not sent to remote server | |
} else { | |
DispatchQueue.main.async { | |
// It's now safe to remove the checklist completed steps from the device | |
// Possibly show user an animation 'Checklist sent' | |
} |