If you are using swift 3, you should animate like this:
UIView.animate(withDuration: 0.5) {
// You code that will be animated
}
You are missing the {}.
solved My Xcode keeps sending an error and I can’t seem to fix it
If you are using swift 3, you should animate like this:
UIView.animate(withDuration: 0.5) {
// You code that will be animated
}
You are missing the {}.
solved My Xcode keeps sending an error and I can’t seem to fix it