The [fruitName] causes the print(fruitName) to always print the previous selection. Removed both prints output the selected item.
Topic:
UI Frameworks
SubTopic:
SwiftUI
Tags: