I have this code in Objective-C and I want to pass it to Swift 4.
Can someone tell me the simplest way?
I'm starting with the language and I'm a little lost, thanks.
[UIView animateWithDuration:0.25
animations:^{
datePicker.alpha = 0.0f;
}
completion:^(BOOL finished){
datePicker.hidden = YES;
}];