Przeglądaj źródła

Update README.md

Prefix reachabilityChanged(note:) by @objc to make it an available #selector
Dani Arnaout 8 lat temu
rodzic
commit
3e5bf29632
1 zmienionych plików z 1 dodań i 1 usunięć
  1. 1 1
      README.md

+ 1 - 1
README.md

@@ -168,7 +168,7 @@ let reachability = Reachability()!
 and
 
 ```swift
-func reachabilityChanged(note: Notification) {
+@objc func reachabilityChanged(note: Notification) {
 
   let reachability = note.object as! Reachability