issues
search
aaronabentheuer
/
AAFaceDetection
Prototyping-Library providing easy access to iOS face detection features through NSNotification.
511
stars
53
forks
source link
Update to Swift 3 & Notifications via enumerated types rather than strings
#11
Open
camdeardorff
opened
7 years ago
camdeardorff
commented
7 years ago
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) /
nitinalabur
commented
7 years ago
+1