Deviopath › Swift

Stable IDs

Hard · SwiftUI

SwiftUI lists need stable ids. Given names, assign ids 1... in first-seen order, and return the ids for a second list of names (unknown name → 0). Write ids(_:_:).

Next: Toggle Binding