I am trying to create SwiftUI List based on enum strings. I am faced with this error:
Cannot invoke initializer for type 'List<_, _>' with an argument list of type '([HomeView.Data], @escaping (String) -> HomeMenuRow)'
Image may be NSFW.
Clik here to view.
I can't understand how to use id or how to iterate through enum to build a row.