File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -58,9 +58,10 @@ The base view controller uses a `MessageAutocompleteController` control to handl
5858This control uses a plain ` UITableView ` to display its autocomplete. Add a ` dataSource ` and ` delegate ` to display and handle interactions.
5959
6060``` swift
61- messageAutocompleteController.tableView .register (UITableViewCell.self , forCellReuseIdentifier : " cell" )
62- messageAutocompleteController.tableView .dataSource = self
63- messageAutocompleteController.tableView .delegate = self
61+ let tableView = messageAutocompleteController.tableView
62+ tableView.register (UITableViewCell.self , forCellReuseIdentifier : " cell" )
63+ tableView.dataSource = self
64+ tableView.delegate = self
6465```
6566
6667Then register for autocomplete prefixes you want to respond to and set a ` delegate ` to handle when a prefix is found.
You can’t perform that action at this time.
0 commit comments