Skip to content
This repository was archived by the owner on Jul 14, 2020. It is now read-only.

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

Open
camdeardorff wants to merge 3 commits intoaaronabentheuer:masterfrom
camdeardorff:master
Open

Update to Swift 3 & Notifications via enumerated types rather than strings#11
camdeardorff wants to merge 3 commits intoaaronabentheuer:masterfrom
camdeardorff:master

Conversation

@camdeardorff
Copy link

  • 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
Copy link

+1

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants