Classes
The following classes are available globally.
-
A class for handling
See moreUIControl.addTarget(_:action:forControlEvents:)in a pure swift class.Declaration
Swift
public class ObjectTarget<T:UIControl>:NSObject
-
Implementation of
Observerfor observing a keypath setter of an object. Observation begins oninitand ends ondeinitunless called otherwise.For efficiency the class is marked as final. If necessary, convenience initialisers can be created using extensions.
See moreDeclaration
Swift
public final class ObjectObserver:NSObject, Observer
-
See moreUICollectionViewFlowLayoutsubclass that shows items as grid that fit horizontally to a fixed margin rather than a fixed size. The size is determined by theitemTargetWidth,singleColumnRatioandmultiColumnRatio. The target width may not be realized, but is used to determined the number of columns in the layout.Declaration
Swift
public class FittingGridFlowLayout: UICollectionViewFlowLayout
-
Implementation of
Observerfor observing anNSNotificationCenter. Observation begins oninitand ends ondeinit()unless called otherwise.For efficiency the class is marked as final. If necessary, convenience initialisers can be created using extensions.
See moreDeclaration
Swift
public final class NotificationObserver:NSObject, Observer
View on GitHub
Classes Reference