One approach is to update your filter to see if any value in pets is in the petArr array: users = users.filter { $0.pets.contains(where: ...
確定! 回上一頁