In UIKit you can do something like this:
UIView.animate(withDuration: TimeInterval, animations: {
//animation
}) { (Bool) in
//code which will be executed after the animation
}
Is there anything like that in SwiftUI, or can you think of a replacement?