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:
ikaika (ee-KYE-kah): Strong, powerful, sturdy, stalwart; strength, force, energy, might.
2018-09-20
2018-09-18
UIColor Extension for RGBA Hex and HSLA
Here is an extension for UIColor that I've found useful when working with Photoshop and Web designers. It allows you to specify a UIColor in RGBA hex or HSLA.
Subscribe to:
Posts (Atom)
PreferenceKey Quirks
PreferenceKey has a few quirks that have tripped me up. One is the reduce(value:nextValue:) implementation. The other is that a PreferenceKe...
-
While setting up OpenBSD on my PowerBook, I ran across a problem with GNOME. My mouse would work fine but the moment I tried to type somethi...
-
I've been working on a WPF project in Visual Studio 2010 and I came across a problem where Visual Studio would crash when I used the Doc...
-
I've finally had some free time to work on the Label Sphere. The new version should correctly color the labels according to your blog...