Swiftui, Swift, iOS App Development, iOS Development, iOS.
identification to help SwiftUI recognize views. Currently, there are two ways to set explicit identities for views in SwiftUI: Specify in the constructor of ForEach Since the number of views in ForEach is dynamic and generated at runtime, it is necessary to specify a KeyPath that can be used to