79330138

Date: 2025-01-05 03:57:46
Score: 2
Natty:
Report link

SwiftUI's ForEach is designed for immutable data. However, you're modifying player.cards inside the Button action. If players is an array of structs, mutating a player within the ForEach won't work because structs are value types.

Reasons:
  • Low length (0.5):
  • No code block (0.5):
  • Single line (0.5):
  • Low reputation (0.5):
Posted by: nazmul