Avatar
Avatar
omochimetaru
@swift-5.8.1 func animate( animations: (() -> Void)? = nil, completion: (() -> Void)? = nil ) { print("animations") animations?() print("completion") completion?() } animate { print(1) }
animations completion 1<stdin>:11:17: warning: backward matching of the unlabeled trailing closure is deprecated; label the argument with 'completion' to suppress this warning animate { print(1) } ^ (completion: ) <stdin>:1:14: note: 'animate(animations:completion:)' declared here func animate( ^