The sample project freeze my Mac for several minutes

The KeyboardNavigation sample project has a crazy long list of SF Symbol names coded for SampleData in SymbolLibrary.swift file, which causes significant amount of time for Xcode to perform an initial indexing and ultimately cause the Xcode to stop responding on my Mac.

The code should be refactored with a plain text file or plist that lists all symbol names, then at runtime, iterate through them and generate an array of SampleData accordingly.

Can you post a link to this sample project, or describe how to obtain it? I would also encourage filing a bug report for this Xcode hang via Feedback Assistant.

The reason why we don't want to just put all the symbol names into a text file is that this would essentially just move the burden of parsing this to every app launch on every device, having an impact on performance and power consumption. Preprocessing the data instead at compile time is usually the better approach as it makes the actual app run faster and consume less energy.

Given that this is a sample app there is clearly no need for this huge amount of data though, so we are looking at reducing the amount of sample data in this project.

The sample project freeze my Mac for several minutes
 
 
Q