Simple Events in Swift

Events are useful when you need more than one delegate or event handler. Here is a simple class that can be used to manage events:

Use the uiSubscribe and uiUnsubscribe to have the Event class automatically run the event handler on the main DispatchQueue (for GUI related stuff). Here is an example of how to use them:


Popular posts from this blog

Update to Label Sphere

Run-time and design-time selection of a ViewModel using XAML

Label Sphere v2