LoginSignup
0
0

【Xcode エラー】「Anonymous closure argument not contained in a closure」【解決法】

Posted at

とあるUdemyのSwift講座のコードを模写していたら

以下の画像のように
「Anonymous closure argument not contained in a closure」
といったエラーが発生した。

スクリーンショット 2023-05-18 11.21.29.png

【原因】

本来は「{}」を使うべきなのだが{}ではなく()を使っていたので発生した模様。

《参考記事》[Swift]配列をソートしようとしたらerror: anonymous closure argument not contained in a closureが出た

0
0
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
0
0