When I write down these codes snippets:
import UIKit
class HomeViewController: UIViewController, UITableViewDelegate, UITableViewDataSource {
var homeCellArr: [Dictionary <String, String>] = [
["name": "eee", "pic": "newsIcon"],
["name": "dcd", "pic": "taskIcon"],
["name": "ccccc", "pic": "cardIcon"],
["name": "bbbb", "pic": "mailIcon"],
["name": "aa", "pic": "optionIcon"]
]
override func viewDidLoad() {
......
I found Building and Indexing became too slow
And CODE Autocomplete also became slow slow slow IN THIS Swift File
Such as I write self. I must wait 6s or 7s, before autocomplete show up
How to fix this problem?
When I noted these codes
// var homeCellArr: [Dictionary <String, String>] = [
// ["name": "eee", "pic": "newsIcon"],
// ["name": "dcd", "pic": "taskIcon"],
// ["name": "ccccc", "pic": "cardIcon"],
// ["name": "bbbb", "pic": "mailIcon"],
// ["name": "aa", "pic": "optionIcon"]
// ]
The speed of code autocomplete turn normal