AAFaceDetection icon indicating copy to clipboard operation
AAFaceDetection copied to clipboard

Update to Swift 3 & Notifications via enumerated types rather than strings

Open camdeardorff opened this issue 8 years ago • 1 comments

  • Updated the whole project to Swift 3
  • The convertOrientation function now returns the calculated value from the switch statement
  • The System of subscribing to a notification by knowing the 'Magic String' didn't seem too friendly or optimal, so....
    • Added an extension to NSNotification to accept a Visage Notification type and return the Notification.
    • On the user side one would use the syntax: / NSNotification.Visage(type: .blinking) /

camdeardorff avatar Jan 26 '17 13:01 camdeardorff

+1

nitinalabur avatar May 04 '17 18:05 nitinalabur