The warnings sounds like: Trailing closure in this context is confusable with the body of the statement; pass as a parenthesized argument to silence this warning
before fix:
if let genres = item.genres?.compactMap { $0.genreName } {
after:
if let genres = item.genres?.compactMap({ $0.genreName }) {
How can I disable this warning or vice versa, make it mandatory?