diff --git a/Hierarchy-List/ContentView-xcode-11.swift b/Hierarchy-List/ContentView-xcode-11.swift index 7a3aecf..639367e 100644 --- a/Hierarchy-List/ContentView-xcode-11.swift +++ b/Hierarchy-List/ContentView-xcode-11.swift @@ -28,7 +28,7 @@ struct FileItem: Identifiable { } struct ContentView: View { - let data: [FileItem] = .spmData + let data: [FileItem] = FileItem.spmData var body: some View { // List(data, children: \.children, rowContent: { Text($0.name) }) @@ -87,4 +87,4 @@ struct FSDisclosureGroup: View where Label: View, Content: View content() } } -} \ No newline at end of file +}