Type Safely

Type Safely

Share this post

Type Safely
Type Safely
Use .searchable To Filter A SwiftUI List

Use .searchable To Filter A SwiftUI List

Daily Coding Tip 124

Millie Sturgeon's avatar
Millie Sturgeon
Jul 05, 2022
∙ Paid

Share this post

Type Safely
Type Safely
Use .searchable To Filter A SwiftUI List
Share
Image by Clive Amutsa from Pixabay

I’ve started by creating a type called IdentifiableData which has a unique identifier and an index.

An array of these will be my searchable data, and the uuidString of Apple’s UUID type will be the string I am searching for. Using the .searchable modifier on a List doesn’t automatically filter the content, but it does g…

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 writingGet the app
Substack is the home for great culture

Share