Various improvements

This commit is contained in:
Ilya Laktyushin
2020-10-19 02:01:27 +04:00
parent fe9610eee9
commit e45a3c0ee9
23 changed files with 4544 additions and 4288 deletions

View File

@@ -31,10 +31,7 @@ final class LocationOptionsNode: ASDisplayNode {
self.addSubnode(self.separatorNode)
self.addSubnode(self.segmentedControlNode)
self.segmentedControlNode.selectedIndexChanged = { [weak self] index in
guard let strongSelf = self else {
return
}
self.segmentedControlNode.selectedIndexChanged = { index in
switch index {
case 0:
updateMapMode(.map)