Classes

The following classes are available globally.

  • Base binding for mutable ViewModels

    Sample usage:
    
    ```
    struct ImageViewModel {
        let imageCaption: Observable<String>
    }
    ```
    
    Then to observe changes to the view model from a view:
    
    ```
    imageVewModel.imageCaption.observe { [unowned self] in
        self.captionLabel?.text = $0
    }
    ```
    
    See more

    Declaration

    Swift

    class Observable<T>
  • Global / Sticky / Stretchy Headers using UICollectionViewFlowLayout. Works for iOS8, iOS9 and above.

    See more

    Declaration

    Swift

    class AKPCollectionViewFlowLayout: UICollectionViewFlowLayout
  • The App Delegate

    See more

    Declaration

    Swift

    class AppDelegate: UIResponder, UIApplicationDelegate
  • A custom UICollectionViewCell that presents an image with caption, based on ovservable data from its ImageViewModel

    See more

    Declaration

    Swift

    @IBDesignable class ImageCollectionViewCell: UICollectionViewCell
  • Visual configuration of AKPCollectionViewFlowLayout’s LayoutConfigOptions

    See more

    Declaration

    Swift

    class LayoutConfigController: UITableViewController
  • Custom UICollectionReusableView section header that serves as a Global Header

    See more

    Declaration

    Swift

    class ImageCollectionViewGlobalHeader: UICollectionReusableView