O que é @selector() em Swift e como usá-lo com NSTimer?
Olá a todos! Sou um desenvolvedor iOS iniciante e estou migrando de Objective-C para Swift. Antes, em Objective-C, eu usava ativamente @selector() para trabalhar com timers e target-action, por exemplo:
```objc
[NSTimer scheduledTimerWithTimeInterval:1.0
target:self
selector:@selector(updateTimer:)
userInfo:nil
repeats:YES];
```
Agora estou tentando fazer o mesmo em Swift, mas o compilador reclama quando escrevo:
```swift
let timer = Timer.scheduledTimer(timeInterval: 1.0,
target: self,
selector: @selector(updateTimer:),
userInfo: nil,
repeats: true)
```
Erro: `Use of unresolved identifier 'updateTimer'`. Entendo que algo mudou com seletores em Swift, mas não consigo descobrir como fazer corretamente.