Classes

The following classes are available globally.

  • A class for handling UIControl.addTarget(_:action:forControlEvents:) in a pure swift class.

    See more

    Declaration

    Swift

    public class ObjectTarget<T:UIControl>:NSObject
  • Implementation of Observer for observing a keypath setter of an object. Observation begins on init and ends on deinit unless called otherwise.

    For efficiency the class is marked as final. If necessary, convenience initialisers can be created using extensions.

    See more

    Declaration

    Swift

    public final class ObjectObserver:NSObject, Observer
  • UICollectionViewFlowLayout subclass that shows items as grid that fit horizontally to a fixed margin rather than a fixed size. The size is determined by the itemTargetWidth, singleColumnRatio and multiColumnRatio. The target width may not be realized, but is used to determined the number of columns in the layout.

    See more

    Declaration

    Swift

    public class FittingGridFlowLayout: UICollectionViewFlowLayout
  • Implementation of Observer for observing an NSNotificationCenter. Observation begins on init and ends on deinit() unless called otherwise.

    For efficiency the class is marked as final. If necessary, convenience initialisers can be created using extensions.

    See more

    Declaration

    Swift

    public final class NotificationObserver:NSObject, Observer