Skip to content

2.1.3 - Added `ObservableMutableSafePointer` and some aliases

Latest
Compare
Choose a tag to compare
@KyLeggiero KyLeggiero released this 25 Mar 02:54

A new kind of safe pointer was added: ObservableMutableSafePointer! Like MutableSafePointer, this lets the pointer's creator receive a callback when it changes. In addition to that, anything else can also register to listen for changes! And of course, this is all done the Swift way, so you don't have to keep track of these; they'll automatically get destroyed when the pointer leaves scope.

Additionally, I added these typealiases so you don't have to remember the exact order of these adjectives:

  • MutableSafePointer:
    • SafeMutablePointer
  • ObservableMutableSafePointer:
    • MutableSafeObservablePointer
    • SafeObservableMutablePointer
    • MutableObservableSafePointer
    • ObservableSafeMutablePointer
    • SafeMutableObservablePointer

Patch Changes

Here are the changes in the patch versions:

  • 2.1.3 - Made ObserverIdentifier public
  • 2.1.2 - Made the above-listed new typeliases public
  • 2.1.1 - Made ObservableMutableSafePointer mutable from a property wrapper