Type Safely

Type Safely

Allow Renaming of List Items With .renameAction and RenameButton

Daily Coding Tip 137

Millie Sturgeon's avatar
Millie Sturgeon
Jul 26, 2022
∙ Paid
Share
body of water surrounded by pine trees during daytime
Photo by Luca Bravo on Unsplash

Here I’ve got a Hashable and Identifiable Item type that I want to display in my List. This allows me to use them in a ForEach, although I am not passing a Binding to the original item. For the purpose of demonstration, I am merely giving an initial value to a State value within each ListRow.

That part is pretty predictabl…

Keep reading with a 7-day free trial

Subscribe to Type Safely to keep reading this post and get 7 days of free access to the full post archives.

Already a paid subscriber? Sign in
© 2025 Type Safely
Privacy ∙ Terms ∙ Collection notice
Start your SubstackGet the app
Substack is the home for great culture