Looks like you may have an extra curly bracket since the unresolved identifier means that it doesn’t know about the item specified at the location that it’s written. I think you have an extra curly bracket after the “Declare hide keyboard tap” block of code. Proofread your code for small mistakes like that. Usually when many similar errors like this show up, it’s caused by something small
solved Multiple Unresolved Identifiers in Swift