Classes
The following classes are available globally.
-
Helper class to support Swift ObjC interoperability when passing
See moreAnyaround from Swift to ObjCDeclaration
Swift
public class AnyWrapper<T> -
Helper class to support Swift ObjC interoperability when passing
See moreAnyvar around from Swift to ObjC and vice versaDeclaration
Swift
public class AnyMutableWrapper<T> -
BlockingVar blocks the [value.get] call until the [value.set] has set the value.
Note: be aware of blocking the main-thread when the getter is invoked from the main-thread.
See moreDeclaration
Swift
public class BlockingVar<T> -
Thread-Safe variable wrapper.
Makes sure the get and set are happening synchronously by using a Mutex for reader/writing to the wrapped value
See moreDeclaration
Swift
public class SynchronizedVar<T> -
Swift object that holds a weak reference to an Object like its Java counter-part WeakReference.
See moreDeclaration
Swift
public class WeakRef<T> where T : AnyObject