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
Observer
for observing a keypath setter of an object. Observation begins oninit
and 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 ObjectObserver:NSObject, Observer
-
See moreUICollectionViewFlowLayout
subclass that shows items as grid that fit horizontally to a fixed margin rather than a fixed size. The size is determined by theitemTargetWidth
,singleColumnRatio
andmultiColumnRatio
. 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
Observer
for observing anNSNotificationCenter
. Observation begins oninit
and 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